public class EnumPropertyType<E extends Enum<E>> extends Object implements PropertyType<E>
| Constructor and Description |
|---|
EnumPropertyType(Class<E> enumType) |
| Modifier and Type | Method and Description |
|---|---|
E |
convert(Object object)
Converts the given object (typically read from a property resource) to the given type, if possible.
|
static <E extends Enum<E>> |
of(Class<E> type) |
Object |
toExportValue(E value)
Converts the given value to its export value.
|
public static <E extends Enum<E>> EnumPropertyType<E> of(Class<E> type)
public E convert(Object object)
PropertyTypeconvert in interface PropertyType<E extends Enum<E>>object - the object to convertpublic Object toExportValue(E value)
PropertyTypePropertyType.convert(java.lang.Object).)toExportValue in interface PropertyType<E extends Enum<E>>value - the value to convertCopyright © 2016–2019 The AuthMe Team. All rights reserved.