public enum TriState extends Enum<TriState>
| Modifier and Type | Method and Description |
|---|---|
static TriState |
from(boolean b) |
boolean |
isSet() |
static TriState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TriState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TriState ENABLED
public static final TriState DISABLED
public static final TriState UNSET
public static TriState[] values()
for (TriState c : TriState.values()) System.out.println(c);
public static TriState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TriState from(boolean b)
public boolean isSet()