Class ConfigValue.EnumValue<E extends Enum<E>>
java.lang.Object
my.celium.org.config.ConfigValue<E>
my.celium.org.config.ConfigValue.EnumValue<E>
- Enclosing class:
ConfigValue<T>
Enum value; unknown names on disk fall back to the default.
-
Nested Class Summary
Nested classes/interfaces inherited from class ConfigValue
ConfigValue.BooleanValue, ConfigValue.DoubleValue, ConfigValue.EnumValue<E>, ConfigValue.IntegerValue, ConfigValue.LongValue, ConfigValue.StringListValue, ConfigValue.StringValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EValidates (and possibly normalises) a value; throws when unacceptable for code-driven sets.All allowed constants, in declaration order.protected Edeserialize(com.google.gson.JsonElement element) kind()protected com.google.gson.JsonElementtype()Methods inherited from class ConfigValue
category, description, get, getDefault, isDefault, key, onChange, reset, set, validate
-
Constructor Details
-
EnumValue
-
-
Method Details
-
type
-
constants
-
kind
-
check
Description copied from class:ConfigValueValidates (and possibly normalises) a value; throws when unacceptable for code-driven sets.- Specified by:
checkin classConfigValue<E extends Enum<E>>
-
serialize
-
deserialize
- Specified by:
deserializein classConfigValue<E extends Enum<E>>
-