java.util.Comparator<java.lang.Double>AbstractDoubleComparator@FunctionalInterface
public interface DoubleComparator
extends java.util.Comparator<java.lang.Double>
Comparator; provides methods to compare two primitive
types both as objects and as primitive types.
Note that fastutil provides a corresponding abstract class that can
be used to implement this interface just by specifying the type-specific
comparator.
Comparator| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(double k1,
double k2) |
Compares its two primitive-type arguments for order.
|
default int |
compare(java.lang.Double ok1,
java.lang.Double ok2) |
Deprecated.
Please use the corresponding type-specific method instead.
|
int compare(double k1,
double k2)
Comparator@Deprecated
default int compare(java.lang.Double ok1,
java.lang.Double ok2)
This implementation delegates to the corresponding type-specific method.
compare in interface java.util.Comparator<java.lang.Double>