Package it.unimi.dsi.fastutil.floats
Class FloatComparators.OppositeImplicitComparator
java.lang.Object
it.unimi.dsi.fastutil.floats.FloatComparators.OppositeImplicitComparator
- All Implemented Interfaces:
FloatComparator,Serializable,Comparator<Float>
- Enclosing class:
FloatComparators
protected static class FloatComparators.OppositeImplicitComparator
extends Object
implements FloatComparator, Serializable
A type-specific comparator mimicking the opposite of the natural order.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatComparator
compare, thenComparing, thenComparing
-
Constructor Details
-
OppositeImplicitComparator
protected OppositeImplicitComparator()
-
-
Method Details
-
compare
public final int compare(float a, float b) Description copied from interface:FloatComparatorCompares its two primitive-type arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.- Specified by:
comparein interfaceFloatComparator- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
- See Also:
-
reversed
- Specified by:
reversedin interfaceComparator<Float>- Specified by:
reversedin interfaceFloatComparator
-