public class CharComparators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CharComparator |
NATURAL_COMPARATOR |
static CharComparator |
OPPOSITE_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static CharComparator |
oppositeComparator(CharComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
public static final CharComparator NATURAL_COMPARATOR
public static final CharComparator OPPOSITE_COMPARATOR
public static CharComparator oppositeComparator(CharComparator c)
c
- a comparator.c
.