public class LongComparators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LongComparator |
NATURAL_COMPARATOR
A type-specific comparator mimicking the natural order.
|
static LongComparator |
OPPOSITE_COMPARATOR
A type-specific comparator mimicking the opposite of the natural order.
|
Modifier and Type | Method and Description |
---|---|
static LongComparator |
oppositeComparator(LongComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
public static final LongComparator NATURAL_COMPARATOR
public static final LongComparator OPPOSITE_COMPARATOR
public static LongComparator oppositeComparator(LongComparator c)
c
- a comparator.c
.