public final class BooleanComparator extends Object implements Comparator<Boolean>, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static BooleanComparator |
TRUE_HIGH
A shared default instance of this comparator, treating true higher than
false.
|
static BooleanComparator |
TRUE_LOW
A shared default instance of this comparator, treating true lower than
false.
|
| 构造器和说明 |
|---|
BooleanComparator(boolean trueLow)
Create a BooleanComparator that sorts boolean values based on the
provided flag.
|
public static final BooleanComparator TRUE_LOW
public static final BooleanComparator TRUE_HIGH
public BooleanComparator(boolean trueLow)
Alternatively, you can use the default shared instances:
BooleanComparator.TRUE_LOW and
BooleanComparator.TRUE_HIGH.
public int compare(Boolean v1, Boolean v2)
compare 在接口中 Comparator<Boolean>Copyright © 2013 The Skfiy Open Association. All Rights Reserved.