jd.util
Interface Comparator
- All Known Implementing Classes:
- NodeComparator, StringComparator
- public interface Comparator
A comparison function, which imposes a total ordering on some collection of objects.
- See Also:
Quicksort
Method Summary |
int |
compare(Object object1,
Object object2)
Compare the two arguments for order. |
STRING_COMPARATOR
public static final Comparator STRING_COMPARATOR
- A Comparator for String objects.
compare
public int compare(Object object1,
Object object2)
- Compare the two arguments for order.
Return a negative integer, zero, or a positive integer as the first argument
is less than, equal to, or greater than the second.