public class TimeSetting extends Setting<java.lang.Long>
TimeUnit
under the value.
All values return milliseconds.
Constructor and Description |
---|
TimeSetting(java.lang.String path) |
TimeSetting(java.lang.String path,
java.util.function.Predicate<java.lang.Long> validator) |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getValueFrom(ConfigNode node) |
getPath, isValid, nullValidator, timeValidator, toString
public TimeSetting(java.lang.String path)
public TimeSetting(java.lang.String path, java.util.function.Predicate<java.lang.Long> validator)
public java.lang.Long getValueFrom(ConfigNode node)
getValueFrom
in class Setting<java.lang.Long>