Class ConfigValue.StringValue
- Enclosing class:
ConfigValue<T>
String value with a maximum length.
-
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
ConstructorsConstructorDescriptionStringValue(String category, String key, String defaultValue, int maxLength, String description) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringValidates (and possibly normalises) a value; throws when unacceptable for code-driven sets.protected Stringdeserialize(com.google.gson.JsonElement element) kind()intprotected com.google.gson.JsonElementMethods inherited from class ConfigValue
category, description, get, getDefault, isDefault, key, onChange, reset, set, validate
-
Constructor Details
-
StringValue
-
-
Method Details
-
maxLength
public int maxLength() -
kind
- Specified by:
kindin classConfigValue<String>
-
check
Description copied from class:ConfigValueValidates (and possibly normalises) a value; throws when unacceptable for code-driven sets.- Specified by:
checkin classConfigValue<String>
-
serialize
- Specified by:
serializein classConfigValue<String>
-
deserialize
- Specified by:
deserializein classConfigValue<String>
-