Class StringSetting
- java.lang.Object
-
- com.djrapitops.plan.settings.config.paths.key.Setting<java.lang.String>
-
- com.djrapitops.plan.settings.config.paths.key.StringSetting
-
public class StringSetting extends Setting<java.lang.String>
Setting implementation for String value settings.
-
-
Constructor Summary
Constructors Constructor Description StringSetting(java.lang.String path)
StringSetting(java.lang.String path, java.lang.String defaultValue)
StringSetting(java.lang.String path, java.util.function.Predicate<java.lang.String> validator)
StringSetting(java.lang.String path, java.util.function.Predicate<java.lang.String> validator, java.lang.String defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValueFrom(ConfigNode node)
-
Methods inherited from class com.djrapitops.plan.settings.config.paths.key.Setting
getDefaultValue, getPath, isInvalid, isValid, nullValidator, timeValidator, toString
-
-
-
-
Constructor Detail
-
StringSetting
public StringSetting(java.lang.String path)
-
StringSetting
public StringSetting(java.lang.String path, java.util.function.Predicate<java.lang.String> validator)
-
StringSetting
public StringSetting(java.lang.String path, java.lang.String defaultValue)
-
StringSetting
public StringSetting(java.lang.String path, java.util.function.Predicate<java.lang.String> validator, java.lang.String defaultValue)
-
-
Method Detail
-
getValueFrom
public java.lang.String getValueFrom(ConfigNode node)
- Specified by:
getValueFrom
in classSetting<java.lang.String>
-
-