public static class Property.DurationProperty extends Property.BaseProperty<java.time.Duration>
Property.BaseProperty<T>, Property.BooleanProperty, Property.CharsetProperty, Property.DurationInSecondsProperty, Property.DurationProperty, Property.EnumProperty<T extends java.lang.Enum<T>>, Property.IntegerProperty, Property.LongProperty, Property.ObjectProperty, Property.StringProperty, Property.Validating<T>
Modifier and Type | Field and Description |
---|---|
protected java.time.Duration |
min |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Constructor and Description |
---|
DurationProperty(java.lang.String name) |
DurationProperty(java.lang.String name,
java.time.Duration def) |
DurationProperty(java.lang.String name,
java.time.Duration def,
java.time.Duration min) |
Modifier and Type | Method and Description |
---|---|
protected static java.time.Duration |
atLeast(java.lang.String name,
java.time.Duration value,
java.time.Duration min) |
protected java.time.Duration |
fromStorage(java.lang.Object value) |
private static java.lang.Long |
toMillis(java.time.Duration value) |
protected java.lang.Object |
toStorage(java.time.Duration value) |
get, getDefault, getName, getOrCustomDefault, getType, set, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bool, bool, charset, charset, duration, duration, duration, durationSec, durationSec, durationSec, enum_, enum_, getOrNull, getRequired, getRequiredDefault, integer, integer, long_, long_, object, object, remove, string, string, validating
findByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByName
public DurationProperty(java.lang.String name)
public DurationProperty(java.lang.String name, java.time.Duration def)
public DurationProperty(java.lang.String name, java.time.Duration def, java.time.Duration min)
protected java.lang.Object toStorage(java.time.Duration value)
toStorage
in class Property.BaseProperty<java.time.Duration>
protected java.time.Duration fromStorage(java.lang.Object value)
fromStorage
in class Property.BaseProperty<java.time.Duration>
private static java.lang.Long toMillis(java.time.Duration value)
protected static java.time.Duration atLeast(java.lang.String name, java.time.Duration value, java.time.Duration min)