public enum Tristate extends Enum<Tristate>
| Modifier and Type | Method and Description |
|---|---|
abstract Tristate |
and(Tristate other)
ANDs this tristate with another tristate.
|
boolean |
asBoolean()
Returns the boolean representation of this tristate.
|
static Tristate |
fromBoolean(boolean val)
Return the appropriate tristate for a given boolean value.
|
abstract Tristate |
or(Tristate other)
ORs this tristate with another tristate.
|
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 TRUE
public static final Tristate FALSE
public static final Tristate UNDEFINED
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 fromBoolean(boolean val)
val - The boolean valuepublic abstract Tristate and(Tristate other)
other - The tristate to AND withpublic abstract Tristate or(Tristate other)
other - The tristate to OR withpublic boolean asBoolean()