Package org.apache.sshd.common
Class Property.EnumProperty<T extends Enum<T>>
- java.lang.Object
-
- org.apache.sshd.common.Property.BaseProperty<T>
-
- org.apache.sshd.common.Property.EnumProperty<T>
-
- All Implemented Interfaces:
NamedResource
,Property<T>
public static class Property.EnumProperty<T extends Enum<T>> extends Property.BaseProperty<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.common.Property
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>
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<T>
values
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description EnumProperty(String name, Class<T> type)
EnumProperty(String name, Class<T> type, T def)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
fromStorage(Object value)
-
Methods inherited from class org.apache.sshd.common.Property.BaseProperty
get, getDefault, getName, getOrCustomDefault, getType, set, toStorage, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.Property
getOrNull, getRequired, getRequiredDefault, remove
-
-
-
-
Field Detail
-
values
protected final Collection<T extends Enum<T>> values
-
-
Method Detail
-
fromStorage
protected T fromStorage(Object value)
- Specified by:
fromStorage
in classProperty.BaseProperty<T extends Enum<T>>
-
-