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

Field Summary
static Comparator STRING_COMPARATOR
          A Comparator for String objects.
 
Method Summary
 int compare(Object object1, Object object2)
          Compare the two arguments for order.
 

Field Detail

STRING_COMPARATOR

public static final Comparator STRING_COMPARATOR
A Comparator for String objects.

Method Detail

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.