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