com.objectwave.utility
Interface SorterComparisonIF
- public interface SorterComparisonIF
Inteface used by the Sorter class to assist allow the user to provide
a custom comparison method.
Method Summary |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two objects. |
LESS_THAN
public static final int LESS_THAN
- See Also:
- Constant Field Values
EQUAL_TO
public static final int EQUAL_TO
- See Also:
- Constant Field Values
GREATER_THAN
public static final int GREATER_THAN
- See Also:
- Constant Field Values
compare
public int compare(java.lang.Object a,
java.lang.Object b)
- Compare two objects. The return value should be one of
LESS_THAN, EQUAL_TO, or GREATER_THAN. These should correspond to
some meaningful "a < b", "a == b", and "a > b", respectively.