public class BooleanComparator extends Object implements Comparator<Boolean>, Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static BooleanComparator | TRUE_HIGHA shared default instance of this comparator,
 treating  truehigher thanfalse. | 
| static BooleanComparator | TRUE_LOWA shared default instance of this comparator,
 treating  truelower thanfalse. | 
| Constructor and Description | 
|---|
| BooleanComparator(boolean trueLow)Create a BooleanComparator that sorts boolean values based on
 the provided flag. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compare(Boolean v1,
       Boolean v2) | 
| boolean | equals(Object other) | 
| int | hashCode() | 
| String | toString() | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final BooleanComparator TRUE_LOW
true lower than false.public static final BooleanComparator TRUE_HIGH
true higher than false.public BooleanComparator(boolean trueLow)
Alternatively, you can use the default shared instances:
 BooleanComparator.TRUE_LOW and
 BooleanComparator.TRUE_HIGH.