public static enum State.ChangeIntent extends Enum<State.ChangeIntent>
State.ChangeEvent.intentMask()
for more
discussion on user intent.Enum Constant and Description |
---|
INTENTIONAL
The state change was intentional.
|
NULL
Used instead of Java's built-in
null wherever appropriate. |
UNINTENTIONAL
The state change was not intentional.
|
Modifier and Type | Method and Description |
---|---|
int |
bits() |
static State.ChangeIntent |
fromDiskValue(int diskValue)
Transforms
toDiskValue() back to the enum. |
int |
toDiskValue()
The integer value to write to disk.
|
static int |
toDiskValue(State.ChangeIntent intent_nullable) |
static State.ChangeIntent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State.ChangeIntent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State.ChangeIntent NULL
null
wherever appropriate.public static final State.ChangeIntent UNINTENTIONAL
public static final State.ChangeIntent INTENTIONAL
public static State.ChangeIntent[] values()
for (State.ChangeIntent c : State.ChangeIntent.values()) System.out.println(c);
public static State.ChangeIntent 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 int toDiskValue()
public static int toDiskValue(State.ChangeIntent intent_nullable)
public static State.ChangeIntent fromDiskValue(int diskValue)
toDiskValue()
back to the enum.
Returns NULL
if diskValue can't be resolved.public int bits()