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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedprotectedprotectedprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptiongetPath()Used to get the String path of a the config setting.abstract TgetValueFrom(ConfigNode node) booleanbooleanstatic <T> booleannullValidator(T value) static booleantimeValidator(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
-