Class Sorter

java.lang.Object
com.github.rlacher.sortbench.sorter.Sorter

public class Sorter extends Object
Context class for sorting algorithms, utilising the Strategy design pattern.

This class encapsulates the sorting logic, delegating the actual sorting operation to a SortStrategy. This allows for dynamic switching of sorting algorithms at runtime.

For simplicity at this project scale, the Sorter class directly acts as the Strategy pattern's context, rather than using a separate interface.

The sorter centralises argument validation to ensure data integrity.