public enum TriState extends Enum<TriState>
Modifier and Type | Method and Description |
---|---|
static TriState |
get(boolean value) |
boolean |
isFalse() |
boolean |
isKnown() |
boolean |
isTrue() |
boolean |
isUnknown() |
static TriState |
merge(TriState a,
TriState b)
|
boolean |
toBoolean() |
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 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 boolean isTrue()
public boolean isFalse()
public boolean isUnknown()
public boolean isKnown()
public boolean toBoolean()