public static class Property.DurationProperty extends Property.BaseProperty<Duration>
Property.BaseProperty<T>, Property.BooleanProperty, Property.CharsetProperty, Property.DurationInSecondsProperty, Property.DurationProperty, Property.EnumProperty<T extends Enum<T>>, Property.IntegerProperty, Property.LongProperty, Property.ObjectProperty, Property.StringProperty, Property.Validating<T>
Modifier and Type | Field and Description |
---|---|
protected Duration |
min |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Constructor and Description |
---|
DurationProperty(String name) |
DurationProperty(String name,
Duration def) |
DurationProperty(String name,
Duration def,
Duration min) |
Modifier and Type | Method and Description |
---|---|
protected static Duration |
atLeast(String name,
Duration value,
Duration min) |
protected Duration |
fromStorage(Object value) |
protected Object |
toStorage(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
protected final Duration min
public DurationProperty(String name)
protected Object toStorage(Duration value)
toStorage
in class Property.BaseProperty<Duration>
protected Duration fromStorage(Object value)
fromStorage
in class Property.BaseProperty<Duration>
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.