public static class LongComparator.Reversed extends java.lang.Object implements LongComparator
LongComparator.Reversed| Constructor and Description |
|---|
Reversed(LongComparator original)
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(long o1,
long o2)
Type-Specific compare function to reduce (un)boxing
|
LongComparator |
reversed() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompare, ofpublic Reversed(LongComparator original)
original - that is going to be reversedpublic int compare(long o1,
long o2)
LongComparatorcompare in interface LongComparatoro1 - the first object to be compared.o2 - the second object to be compared.Comparator.compare(Object, Object)public LongComparator reversed()
reversed in interface java.util.Comparator<java.lang.Long>reversed in interface LongComparator