protected static class LongComparators.OppositeComparator extends Object implements LongComparator, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
OppositeComparator(LongComparator c) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(long a,
long b)
Compares its two primitive-type arguments for order.
|
LongComparator |
reversed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompare, thenComparing, thenComparingcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected OppositeComparator(LongComparator c)
public final int compare(long a,
long b)
LongComparatorcompare in interface LongComparatorComparatorpublic final LongComparator reversed()
reversed in interface LongComparatorreversed in interface Comparator<Long>Copyright © 2020. All rights reserved.