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