| java.lang.Object com.jidesoft.comparator.BooleanComparator
BooleanComparator | public class BooleanComparator implements Comparator(Code) | | Comparator for boolean type. This is a singleton class. Call getInstance() to
get the comparator.
|
Constructor Summary | |
protected | BooleanComparator() Constructor.
Has protected access to prevent other clients creating instances of the
class ... |
BooleanComparator | protected BooleanComparator()(Code) | | Constructor.
Has protected access to prevent other clients creating instances of the
class ... it is stateless so we need only one instance.
|
compare | public int compare(Object o1, Object o2)(Code) | | Compares two Booleans. False is treated as being less than True.
Parameters: o1 - the first object to be compared Parameters: o2 - the second object to be compared 0 if a and b are equal, -1 if a is less than b, 1 if a is more than b |
getInstance | public static BooleanComparator getInstance()(Code) | | Returns BooleanComparator singleton.
an instance of BooleanComparator. |
|
|