| java.lang.Object org.springframework.util.comparator.BooleanComparator
BooleanComparator | final public class BooleanComparator implements Comparator,Serializable(Code) | | A Comparator for Boolean objects that can sort either true or false first.
author: Keith Donald since: 1.2.2 |
Field Summary | |
final public static BooleanComparator | TRUE_HIGH A shared default instance of this comparator, treating true higher
than false. | final public static BooleanComparator | TRUE_LOW A shared default instance of this comparator, treating true lower
than false. |
Constructor Summary | |
public | BooleanComparator(boolean trueLow) Create a BooleanComparator that sorts boolean values based on
the provided flag. |
TRUE_HIGH | final public static BooleanComparator TRUE_HIGH(Code) | | A shared default instance of this comparator, treating true higher
than false.
|
TRUE_LOW | final public static BooleanComparator TRUE_LOW(Code) | | A shared default instance of this comparator, treating true lower
than false.
|
BooleanComparator | public BooleanComparator(boolean trueLow)(Code) | | Create a BooleanComparator that sorts boolean values based on
the provided flag.
Alternatively, you can use the default shared instances:
BooleanComparator.TRUE_LOW and
BooleanComparator.TRUE_HIGH .
Parameters: trueLow - whether to treat true as lower or higher than false See Also: BooleanComparator.TRUE_LOW See Also: BooleanComparator.TRUE_HIGH |
hashCode | public int hashCode()(Code) | | |
|
|