public static enum PhilosopherExample.Action extends java.lang.Enum<PhilosopherExample.Action>
Enum Constant and Description |
---|
DO_NOTHING |
RELEASE |
TRY_TAKE |
Modifier and Type | Method and Description |
---|---|
static PhilosopherExample.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PhilosopherExample.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhilosopherExample.Action TRY_TAKE
public static final PhilosopherExample.Action RELEASE
public static final PhilosopherExample.Action DO_NOTHING
public static PhilosopherExample.Action[] values()
for (PhilosopherExample.Action c : PhilosopherExample.Action.values()) System.out.println(c);
public static PhilosopherExample.Action 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