T
- Type of Comparable
objectpublic class InverseComparableComparator<T extends Comparable<T>> extends Object implements Comparator<T>
Comparator
for Comparable
objects.Constructor and Description |
---|
InverseComparableComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
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 InverseComparableComparator()
public int compare(T o1, T o2)
compare
in interface Comparator<T extends Comparable<T>>