public static enum DemotionResult.Status extends Enum<DemotionResult.Status> implements MutateResult
| Enum Constant and Description |
|---|
AMBIGUOUS_CALL
Indicates that the implementation was unable to determine the users current position on
this track.
|
MALFORMED_TRACK
Indicates that the previous group in the track no longer exists.
|
NOT_ON_TRACK
Indicates that the user isn't a member of any of the groups on this track.
|
REMOVED_FROM_FIRST_GROUP
Indicates that the user was removed from the first group in the track.
|
SUCCESS
Indicates that the user was demoted normally.
|
UNDEFINED_FAILURE
An undefined failure occurred.
|
GENERIC_FAILURE, GENERIC_SUCCESS| Modifier and Type | Method and Description |
|---|---|
static DemotionResult.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DemotionResult.Status[] |
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 DemotionResult.Status SUCCESS
public static final DemotionResult.Status REMOVED_FROM_FIRST_GROUP
This usually occurs when the user is currently on the first group, and was demoted "over the start" of the track.
public static final DemotionResult.Status MALFORMED_TRACK
public static final DemotionResult.Status NOT_ON_TRACK
public static final DemotionResult.Status AMBIGUOUS_CALL
This usually occurs when the user is on more than one group on the track.
public static final DemotionResult.Status UNDEFINED_FAILURE
public static DemotionResult.Status[] values()
for (DemotionResult.Status c : DemotionResult.Status.values()) System.out.println(c);
public static DemotionResult.Status 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