public class BooleanComparator extends Object implements Comparator<Object>
| Modifier | Constructor and Description |
|---|---|
protected |
BooleanComparator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2)
Compares two Booleans.
|
static BooleanComparator |
getInstance()
Returns BooleanComparator singleton.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsprotected BooleanComparator()
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 comparedCopyright © 2017. All rights reserved.