Class Sorter.SortResult
- public static class Sorter.SortResult
Class to hold counter values resulting from a sort.
This class is immutable and intended to be used only to return values
from sort methods.
| Constructor Summary |
Sorter.SortResult(int comparisons, int swaps) Constructs a SortResult object with specified values. |
comparisons
public final int comparisons
swaps
public final int swaps
Sorter.SortResult
public Sorter.SortResult(int comparisons, int swaps)
- Constructs a SortResult object with specified values.