Class Setting<T>
java.lang.Object
com.djrapitops.plan.settings.config.paths.key.Setting<T>
- Direct Known Subclasses:
BooleanSetting
,DoubleSetting
,IntegerSetting
,StringListSetting
,StringSetting
,TimeSetting
Represents a path to a config value.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
protected
protected
protected
protected
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
Used to get the String path of a the config setting.abstract T
getValueFrom(ConfigNode node)
boolean
boolean
static <T> boolean
nullValidator(T value)
static boolean
timeValidator(Number number)
toString()
-
Field Details
-
path
-
-
Constructor Details
-
Setting
-
Setting
-
Setting
-
Setting
-
Setting
-
Setting
-
-
Method Details
-
nullValidator
public static <T> boolean nullValidator(T value) -
timeValidator
-
getPath
Used to get the String path of a the config setting.Path separates nested levels with a dot.
- Returns:
- Example: Settings.WebServer.Enabled
-
getValueFrom
-
isValid
-
isInvalid
-
getDefaultValue
-
toString
-