@FunctionalInterface
public interface ShortComparator
extends java.util.Comparator<java.lang.Short>
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 and Description |
|---|---|
int |
compare(short k1,
short k2)
Compares its two primitive-type arguments for order.
|
default int |
compare(java.lang.Short ok1,
java.lang.Short ok2)
Deprecated.
Please use the corresponding type-specific method instead.
|
int compare(short k1,
short k2)
Comparator@Deprecated
default int compare(java.lang.Short ok1,
java.lang.Short ok2)
This implementation delegates to the corresponding type-specific method.
compare in interface java.util.Comparator<java.lang.Short>