public class CharComparator extends Object implements Comparator<Character>
Modifier and Type | Field and Description |
---|---|
static CharComparator |
INSTANCE
A static instance of a CharComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Character char1,
Character char2)
Compare two chars.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final CharComparator INSTANCE
public int compare(Character char1, Character char2)
compare
in interface Comparator<Character>
char1
- First charchar2
- Second charCopyright © 2012–2022 Apache Mavibot Project Parent. All rights reserved.