Enum Class GangNameCheckResult
- All Implemented Interfaces:
Serializable
,Comparable<GangNameCheckResult>
,Constable
Enum representing possible results of checking a gang name validity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGang name contains color codes, which are not allowed.Gang name is empty or not provided.Gang name is restricted and cannot be used.Gang with such a name already exists.Gang name is too long to be accepted.Gang name is available and meets all criteria. -
Method Summary
Modifier and TypeMethodDescriptionstatic GangNameCheckResult
Returns the enum constant of this class with the specified name.static GangNameCheckResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Gang name is available and meets all criteria. -
NAME_RESTRICTED
Gang name is restricted and cannot be used. -
NAME_TOO_LONG
Gang name is too long to be accepted. -
NAME_CONTAINS_COLORS
Gang name contains color codes, which are not allowed. -
NAME_TAKEN
Gang with such a name already exists. -
NAME_EMPTY
Gang name is empty or not provided.
-
-
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
-