public static enum Task.State extends java.lang.Enum<Task.State>
| Enum Constant and Description |
|---|
DONE |
EXECUTION |
NEW |
PENDING |
TERMINATED |
| Modifier and Type | Field and Description |
|---|---|
static Task.State[] |
activeStates
Deprecated.
|
static java.util.List<Task.State> |
activeStatesList |
| Modifier and Type | Method and Description |
|---|---|
static Task.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Task.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Task.State NEW
public static final Task.State EXECUTION
public static final Task.State PENDING
public static final Task.State TERMINATED
public static final Task.State DONE
@Deprecated public static Task.State[] activeStates
Defines 'active' superstate as composition of states in which task may be treated as 'active', it means that task not done and can be or already executing.
public static java.util.List<Task.State> activeStatesList
public static Task.State[] values()
for (Task.State c : Task.State.values()) System.out.println(c);
public static 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