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