public abstract class AbstractFloatComparator extends Object implements FloatComparator
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| Modifier and Type | Method and Description |
|---|---|
abstract int |
compare(float k1,
float k2)
Compares the given primitive types.
|
int |
compare(Float ok1,
Float ok2) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Float ok1, Float ok2)
compare in interface Comparator<Float>public abstract int compare(float k1,
float k2)
FloatComparatorcompare in interface FloatComparatorComparator