Enum Class NameChangeResult.Outcome
- All Implemented Interfaces:
Serializable, Comparable<NameChangeResult.Outcome>, Constable
- Enclosing class:
NameChangeResult
How a name change ended.
- Since:
- 0.11.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe name was changed;NameChangeResult.profile()carries the updated profile.The change failed;NameChangeResult.failure()says why.The name is malformed or invalid (too long, illegal characters).The name is unavailable, or the account is within its name-change cooldown. -
Method Summary
Modifier and TypeMethodDescriptionstatic NameChangeResult.OutcomeReturns the enum constant of this class with the specified name.static NameChangeResult.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHANGED
The name was changed;NameChangeResult.profile()carries the updated profile.- Since:
- 0.11.0
-
INVALID_NAME
The name is malformed or invalid (too long, illegal characters).- Since:
- 0.11.0
-
UNAVAILABLE
The name is unavailable, or the account is within its name-change cooldown.- Since:
- 0.11.0
-
FAILED
The change failed;NameChangeResult.failure()says why.- Since:
- 0.11.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-