Interface BooleanComparator
-
- All Superinterfaces:
Comparator<Boolean>
public interface BooleanComparator extends Comparator<Boolean>
A type-specificComparator
; 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.- See Also:
Comparator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compare(boolean k1, boolean k2)
Compares the given primitive types.-
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
int compare(boolean k1, boolean k2)
Compares the given primitive types.- Returns:
- A positive integer, zero, or a negative integer if the first argument is greater than, equal to, or smaller than, respectively, the second one.
- See Also:
Comparator
-
-