Package dev.cashire.cashconfig.items
Enum Class BaseConfigItem.Type
- All Implemented Interfaces:
Serializable
,Comparable<BaseConfigItem.Type>
,Constable
- Enclosing class:
- BaseConfigItem<T>
Type representing the value of what is stored in
BaseConfigItem
Is a list of all supported types.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseConfigItem.Type
Returns the enum constant of this class with the specified name.static BaseConfigItem.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GROUP
Used to represent a json object.- See Also:
ConfigGroup
-
BOOLEAN
Used to represent a boolean value.- See Also:
ConfigBoolean
-
STRING
Used to represent a string value.- See Also:
ConfigString
-
NUMBER
Used to represent a Numerical value.- See Also:
ConfigNumber
-
ARRAY
Used to represent a json array.- See Also:
ConfigList
-
-
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
-