|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jidesoft.comparator.BooleanComparator
public class BooleanComparator
Comparator for boolean type. This is a singleton class. Call getInstance() to get the comparator.
Constructor Summary | |
---|---|
protected |
BooleanComparator()
Constructor. |
Method Summary | |
---|---|
int |
compare(Object o1,
Object o2)
Compares two Booleans. |
static BooleanComparator |
getInstance()
Returns BooleanComparator singleton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
protected BooleanComparator()
Has protected access to prevent other clients creating instances of the class ... it is stateless so we need only one instance.
Method Detail |
---|
public static BooleanComparator getInstance()
public int compare(Object o1, Object o2)
compare
in interface Comparator<Object>
o1
- the first object to be comparedo2
- the second object to be compared
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |