| Enum Constant and Description |
|---|
Off
Off state.
|
On
On state.
|
Undefined
Undefined state.
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.Boolean |
bool
The boolean equivalent of this state.
|
static Indexable<TriState> |
VALUES
The values of this enum.
|
| Modifier and Type | Method and Description |
|---|---|
static TriState |
fromBoolean(java.lang.Boolean bool)
Convert a nullable boolean into a tri-state.
|
static TriState |
fromInternal(int internalValue)
Get the TriState enum associated with the given internal value.
|
static TriState |
fromInternal(int internalValue,
TriState defaultValue)
Get the TriState enum associated with the given internal value.
|
static TriState |
valueOf(java.lang.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 On
public static final TriState Off
public static final TriState Undefined
@Nullable public final java.lang.Boolean bool
public static TriState[] values()
for (TriState c : TriState.values()) System.out.println(c);
public static TriState 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 null@NotNull public static TriState fromBoolean(@Nullable java.lang.Boolean bool)
bool - incoming boolean, possibly nullbool@Nullable public static TriState fromInternal(int internalValue)
internalValue - internal valuenull if there is none@NotNull public static TriState fromInternal(int internalValue, @NotNull TriState defaultValue)
internalValue - internal valuedefaultValue - default valuedefaultValue if there is none