public abstract class AbstractFloatComparator extends Object implements FloatComparator, Serializable
To create a type-specific comparator you need both a method comparing primitive types and a method comparing objects. However, if you have the first one you can just inherit from this class and get for free the second one.
Comparator,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
int |
compare(Float ok1,
Float ok2)
Deprecated.
Please use the corresponding type-specific method instead.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong@Deprecated public int compare(Float ok1, Float ok2)
This implementation delegates to the corresponding type-specific method.
compare in interface Comparator<Float>