public enum DataMutateResult extends Enum<DataMutateResult>
| 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
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Gets a boolean representation of the result.
|
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 |
wasFailure()
Gets if the result indicates a failure
|
boolean |
wasSuccess()
Gets if the result indicates a success
|
public 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 asBoolean()
public boolean wasSuccess()
public boolean wasFailure()
Copyright © 2018. All rights reserved.