public enum DataMutateResult extends Enum<DataMutateResult> implements Result
Usually as the result to a call on a PermissionHolder or Track.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataMutateResult.WithMergedNode
Extension of
DataMutateResult for temporary set operations. |
| Enum Constant and Description |
|---|
FAIL
Indicates the mutation failed
|
FAIL_ALREADY_HAS
Indicates the mutation failed because the subject of the action already has something
|
FAIL_LACKS
Indicates the mutation failed because the subject of the action lacks something
|
SUCCESS
Indicates the mutation was a success
|
GENERIC_FAILURE, GENERIC_SUCCESS| Modifier and Type | Method and Description |
|---|---|
static DataMutateResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataMutateResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
wasSuccessful()
Gets if the operation which produced this result completed successfully.
|
public static final DataMutateResult SUCCESS
public static final DataMutateResult FAIL
public static final DataMutateResult FAIL_ALREADY_HAS
public static final DataMutateResult FAIL_LACKS
public static DataMutateResult[] values()
for (DataMutateResult c : DataMutateResult.values()) System.out.println(c);
public static DataMutateResult 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 nullpublic boolean wasSuccessful()
ResultwasSuccessful in interface Result