public class CharComparators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CharComparator |
NATURAL_COMPARATOR
A type-specific comparator mimicking the natural order.
|
static CharComparator |
OPPOSITE_COMPARATOR
A type-specific comparator mimicking the opposite of the natural order.
|
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
.