public static class Pair.ByFirstReversePairComparator<T1,T2> extends Object implements Comparator<Pair<T1,T2>>
Pair to another Pair according to the first object of the pair only in decreasing order
This function will work providing
the first element of the Pair is comparable, otherwise will throw a
ClassCastException| Constructor and Description |
|---|
ByFirstReversePairComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Pair<T1,T2> pair1,
Pair<T1,T2> pair2) |
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, thenComparingLong