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.


Field Summary
 final intcomparisons
           
 final intswaps
           

Constructor Summary
Sorter.SortResult(int comparisons, int swaps)
          Constructs a SortResult object with specified values.

Field Detail

comparisons

public final int comparisons

swaps

public final int swaps
Constructor Detail

Sorter.SortResult

public Sorter.SortResult(int comparisons, int swaps)
Constructs a SortResult object with specified values.