private static enum Booleans.BooleanComparator extends java.lang.Enum<Booleans.BooleanComparator> implements java.util.Comparator<java.lang.Boolean>
Boolean values.| Enum Constant and Description |
|---|
FALSE_FIRST |
TRUE_FIRST |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
toString |
private int |
trueValue |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Boolean a,
java.lang.Boolean b) |
java.lang.String |
toString() |
static Booleans.BooleanComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Booleans.BooleanComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Booleans.BooleanComparator TRUE_FIRST
public static final Booleans.BooleanComparator FALSE_FIRST
public static Booleans.BooleanComparator[] values()
for (Booleans.BooleanComparator c : Booleans.BooleanComparator.values()) System.out.println(c);
public static Booleans.BooleanComparator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int compare(java.lang.Boolean a,
java.lang.Boolean b)
compare in interface java.util.Comparator<java.lang.Boolean>public java.lang.String toString()
toString in class java.lang.Enum<Booleans.BooleanComparator>