public static class Property.EnumProperty<T extends Enum<T>> extends Property.BaseProperty<T>
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 Collection<T> |
values |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Constructor and Description |
---|
EnumProperty(String name,
Class<T> type) |
EnumProperty(String name,
Class<T> type,
T def) |
Modifier and Type | Method and Description |
---|---|
protected T |
fromStorage(Object value) |
get, getDefault, getName, getOrCustomDefault, getType, set, toStorage, 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 Collection<T extends Enum<T>> values
protected T fromStorage(Object value)
fromStorage
in class Property.BaseProperty<T extends Enum<T>>
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.