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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public DescendingComparer(Comparator base)
public int compare(Object a, Object b)
compare
in interface Comparator
ClassCastException
- if the objects are of the wrong type for this Comparer