Package it.unimi.dsi.fastutil.booleans
Class BooleanComparators.OppositeComparator
java.lang.Object
it.unimi.dsi.fastutil.booleans.BooleanComparators.OppositeComparator
- All Implemented Interfaces:
BooleanComparator,Serializable,Comparator<Boolean>
- Enclosing class:
BooleanComparators
protected static class BooleanComparators.OppositeComparator
extends Object
implements BooleanComparator, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intcompare(boolean a, boolean b) Compares its two primitive-type arguments for order.final BooleanComparatorreversed()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanComparator
compare, thenComparing, thenComparingMethods inherited from interface java.util.Comparator
equals, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OppositeComparator
-
-
Method Details
-
compare
public final int compare(boolean a, boolean b) Description copied from interface:BooleanComparatorCompares 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 interfaceBooleanComparator- 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 interfaceBooleanComparator- Specified by:
reversedin interfaceComparator<Boolean>
-