类 BooleanComparator
java.lang.Object
cn.taketoday.util.comparator.BooleanComparator
- 所有已实现的接口:
Serializable,Comparator<Boolean>
- 从以下版本开始:
- 4.0
- 作者:
- Keith Donald
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final BooleanComparatorA shared default instance of this comparator, treatingtruehigher thanfalse.static final BooleanComparatorA shared default instance of this comparator, treatingtruelower thanfalse. -
构造器概要
构造器构造器说明BooleanComparator(boolean trueLow) Create a BooleanComparator that sorts boolean values based on the provided flag. -
方法概要
从接口继承的方法 java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
字段详细资料
-
TRUE_LOW
A shared default instance of this comparator, treatingtruelower thanfalse. -
TRUE_HIGH
A shared default instance of this comparator, treatingtruehigher thanfalse.
-
-
构造器详细资料
-
BooleanComparator
public BooleanComparator(boolean trueLow) Create a BooleanComparator that sorts boolean values based on the provided flag.Alternatively, you can use the default shared instances:
BooleanComparator.TRUE_LOWandBooleanComparator.TRUE_HIGH.
-
-
方法详细资料