public enum ThreeState extends java.lang.Enum<ThreeState>
Modifier and Type | Method and Description |
---|---|
static ThreeState |
fromBoolean(boolean value) |
ThreeState |
merge(ThreeState other)
Combine two different ThreeState values yielding UNSURE if values are different
and itself if values are the same.
|
boolean |
toBoolean() |
static ThreeState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreeState YES
public static final ThreeState NO
public static final ThreeState UNSURE
public static ThreeState[] values()
for (ThreeState c : ThreeState.values()) System.out.println(c);
public static ThreeState 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 static ThreeState fromBoolean(boolean value)
public ThreeState merge(ThreeState other)
other
- other value to combine with this valuepublic boolean toBoolean()