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