protected static class ObjectComparators.OppositeComparator<K> extends Object implements Comparator<K>, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
OppositeComparator(Comparator<K> c) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(K a,
K b) |
Comparator<K> |
reversed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected OppositeComparator(Comparator<K> c)
public final int compare(K a, K b)
compare in interface Comparator<K>public final Comparator<K> reversed()
reversed in interface Comparator<K>Copyright © 2020. All rights reserved.