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