public class DescendingComparer extends Object implements Comparator, Serializable
| Constructor and Description |
|---|
DescendingComparer(Comparator base) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object a,
Object b)
Compare two objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic DescendingComparer(Comparator base)
public int compare(Object a, Object b)
compare in interface ComparatorClassCastException - if the objects are of the wrong type for this Comparer