@FunctionalInterface public interface FloatComparator extends Comparator<Float>
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(float k1,
float k2)
Compares its two primitive-type arguments for order.
|
default int |
compare(Float ok1,
Float ok2)
Deprecated.
Please use the corresponding type-specific method instead.
|
default FloatComparator |
reversed() |
default Comparator<Float> |
thenComparing(Comparator<? super Float> second) |
default FloatComparator |
thenComparing(FloatComparator second)
Return a new comparator that first uses this comparator, then uses the second comparator
if this comparator compared the two elements as equal.
|
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongint compare(float k1,
float k2)
Comparatordefault FloatComparator reversed()
reversed in interface Comparator<Float>@Deprecated default int compare(Float ok1, Float ok2)
This implementation delegates to the corresponding type-specific method.
compare in interface Comparator<Float>default FloatComparator thenComparing(FloatComparator second)
Comparator.thenComparing(Comparator)default Comparator<Float> thenComparing(Comparator<? super Float> second)
thenComparing in interface Comparator<Float>