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