public static final class StateUtilities.DescendingComparator<T extends Comparable> extends Object implements Comparator<T>, Serializable
Constructor and Description |
---|
StateUtilities.DescendingComparator()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(T c1,
T c2)
Compares its two arguments for order.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public StateUtilities.DescendingComparator()
public int compare(T c1, T c2)
compare
in interface Comparator<T extends Comparable>
c1
- the first object to be compared.c2
- the second object to be compared.ClassCastException
- if the arguments' types prevent them from being compared by this Comparator.