protected static class IntComparators.OppositeComparator extends java.lang.Object implements IntComparator, java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
OppositeComparator(IntComparator c) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(int a,
int b)
Compares its two primitive-type arguments for order.
|
IntComparator |
reversed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompare, comparing, comparing, comparingDouble, comparingInt, comparingLong, thenComparing, thenComparingprotected OppositeComparator(IntComparator c)
public final int compare(int a,
int b)
IntComparatorcompare in interface IntComparatorComparatorpublic final IntComparator reversed()
reversed in interface IntComparatorreversed in interface java.util.Comparator<java.lang.Integer>