Class Sorter.SearchResult


public static class Sorter.SearchResult

Class to hold counter and "found" values resulting from a search. This class is immutable and intended to be used only to return values from search methods.


Field Summary
 final intcomparisons
           
 final booleanfound
           

Constructor Summary
Sorter.SearchResult(int comparisons, boolean found)
          Constructs a SearchResult object with specified values.

Field Detail

comparisons

public final int comparisons

found

public final boolean found
Constructor Detail

Sorter.SearchResult

public Sorter.SearchResult(int comparisons, boolean found)
Constructs a SearchResult object with specified values.