public final class IntComparators
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static IntComparator |
NATURAL_COMPARATOR |
static IntComparator |
OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static IntComparator |
asIntComparator(java.util.Comparator<? super java.lang.Integer> c)
Returns a type-specific comparator that is equivalent to the given
comparator.
|
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.public static IntComparator asIntComparator(java.util.Comparator<? super java.lang.Integer> c)
c - a comparator, or null.c.