@FunctionalInterface public interface CharComparator extends Comparator<Character>
Comparator; provides methods to compare two primitive types both as objects
and as primitive types.
Note that fastutil provides a corresponding abstract class that
can be used to implement this interface just by specifying the type-specific
comparator.
Comparator| Modifier and Type | Method and Description |
|---|---|
default int |
compare(Character ok1,
Character ok2)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
compare(char k1,
char k2)
Compares its two primitive-type arguments for order.
|
default CharComparator |
reversed() |
default CharComparator |
thenComparing(CharComparator second)
Return a new comparator that first uses this comparator, then uses the second comparator
if this comparator compared the two elements as equal.
|
default Comparator<Character> |
thenComparing(Comparator<? super Character> second) |
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongint compare(char k1,
char k2)
Comparatordefault CharComparator reversed()
reversed in interface Comparator<Character>@Deprecated default int compare(Character ok1, Character ok2)
This implementation delegates to the corresponding type-specific method.
compare in interface Comparator<Character>default CharComparator thenComparing(CharComparator second)
Comparator.thenComparing(Comparator)default Comparator<Character> thenComparing(Comparator<? super Character> second)
thenComparing in interface Comparator<Character>Copyright © 2020. All rights reserved.