public static enum PromotionResult.Status extends Enum<PromotionResult.Status> implements MutateResult
| Enum Constant and Description |
|---|
ADDED_TO_FIRST_GROUP
Indicates that the user was added to the first group in the track.
|
AMBIGUOUS_CALL
Indicates that the implementation was unable to determine the users current position on
this track.
|
END_OF_TRACK
Indicates that the user is already a member of the group at the end of the track,
and as such cannot be promoted any further.
|
MALFORMED_TRACK
Indicates that the next group in the track no longer exists.
|
SUCCESS
Indicates that the user was promoted normally.
|
UNDEFINED_FAILURE
An undefined failure occurred.
|
GENERIC_FAILURE, GENERIC_SUCCESS| Modifier and Type | Method and Description |
|---|---|
static PromotionResult.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PromotionResult.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 PromotionResult.Status SUCCESS
public static final PromotionResult.Status ADDED_TO_FIRST_GROUP
This usually occurs when the user isn't already on any of the groups in the track.
public static final PromotionResult.Status MALFORMED_TRACK
public static final PromotionResult.Status END_OF_TRACK
public static final PromotionResult.Status AMBIGUOUS_CALL
This usually occurs when the user is on more than one group on the track.
public static final PromotionResult.Status UNDEFINED_FAILURE
public static PromotionResult.Status[] values()
for (PromotionResult.Status c : PromotionResult.Status.values()) System.out.println(c);
public static PromotionResult.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