Enum Class IdentifierType
- All Implemented Interfaces:
Serializable,Comparable<IdentifierType>,Constable
Identifies ways in which groups of effects can be referenced.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReferences categories of effects, which are user-facing collections of effects.References individual effects.References groups of effects, which are exclusively developer-facing collections to effects.The JSON-specified value could not be decoded. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull IdentifierTypeGets an identifier from its JSON string value.@NotNull StringgetValue()Gets the encoded string value of this identifier.toString()static IdentifierTypeReturns the enum constant of this class with the specified name.static IdentifierType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EFFECT
References individual effects. -
CATEGORY
References categories of effects, which are user-facing collections of effects. -
GROUP
References groups of effects, which are exclusively developer-facing collections to effects. -
UNKNOWN
The JSON-specified value could not be decoded.
-
-
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
-
fromValue
Gets an identifier from its JSON string value. If an identifier by the provided name could not be found, returnsUNKNOWN.- Parameters:
value- JSON string value- Returns:
- result status value
-
getValue
Gets the encoded string value of this identifier.- Returns:
- json value
-
toString
- Overrides:
toStringin classEnum<IdentifierType>
-