public enum DataMutateResult extends Enum<DataMutateResult> implements MutateResult
Usually as the result to a call on a PermissionHolder or Track.
| Enum Constant and Description |
|---|
ALREADY_HAS
Indicates the mutation failed because the subject of the action already has something
|
FAIL
Indicates the mutation failed
|
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 |
wasSuccess()
Gets if the operation which produced this result completed successfully.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfasBoolean, wasFailurepublic static final DataMutateResult SUCCESS
public static final DataMutateResult ALREADY_HAS
public static final DataMutateResult LACKS
public static final DataMutateResult FAIL
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 wasSuccess()
MutateResultwasSuccess in interface MutateResult