public enum PROCESS_STATE extends Enum<PROCESS_STATE>
Enum Constant and Description |
---|
READY
Thread is waiting to execute.
|
RUNNING
Thread executes.
|
WAITING
Waiting for an object to synchronise.
|
Modifier and Type | Method and Description |
---|---|
static PROCESS_STATE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PROCESS_STATE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PROCESS_STATE READY
public static final PROCESS_STATE RUNNING
public static final PROCESS_STATE WAITING
public static PROCESS_STATE[] values()
for (PROCESS_STATE c : PROCESS_STATE.values()) System.out.println(c);
public static PROCESS_STATE 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 null