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