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