public final class DoubleComparators extends Object
| Modifier and Type | Field and Description |
|---|---|
static DoubleComparator |
NATURAL_COMPARATOR |
static DoubleComparator |
OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static DoubleComparator |
asDoubleComparator(Comparator<? super Double> c)
Returns a type-specific comparator that is equivalent to the given comparator.
|
static DoubleComparator |
oppositeComparator(DoubleComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
public static final DoubleComparator NATURAL_COMPARATOR
public static final DoubleComparator OPPOSITE_COMPARATOR
public static DoubleComparator oppositeComparator(DoubleComparator c)
c - a comparator.c.public static DoubleComparator asDoubleComparator(Comparator<? super Double> c)
c - a comparator, or null.c.