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