public enum TaskCancellationReason extends java.lang.Enum<TaskCancellationReason> implements java.io.Serializable
| Enum Constant and Description |
|---|
CONSEQUENTIAL
The task has been cancelled as a result of other task failures or
cancellations.
|
DIRECT
The task has been directly canceled by the user.
|
NONE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static TaskCancellationReason |
getDefault()
Get the enum constant that is considered to be the default.
|
static TaskCancellationReason |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static TaskCancellationReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaskCancellationReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskCancellationReason NONE
public static final TaskCancellationReason DIRECT
public static final TaskCancellationReason CONSEQUENTIAL
public static TaskCancellationReason[] values()
for (TaskCancellationReason c : TaskCancellationReason.values()) System.out.println(c);
public static TaskCancellationReason 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 nullpublic int getValue()
public static TaskCancellationReason getFromValue(int value)
value - a numeric value.public static TaskCancellationReason getDefault()