| Constructor and Description |
|---|
EnumConverter(Class<T> enumType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumConverter<?> |
createEnumConverter(Class<? extends Enum<?>> enumType)
Convenience "constructor" allowing wildcard caller
Enum types. |
protected T |
doBackward(EnumValue enumValue) |
protected EnumValue |
doForward(T value) |
boolean |
equals(Object obj) |
Class<T> |
getEnumType()
Get the
Enum type associated with this instance. |
int |
hashCode() |
String |
toString() |
public EnumConverter(Class<T> enumType)
enumType - Enum typeIllegalArgumentException - if enumType is nullpublic Class<T> getEnumType()
Enum type associated with this instance.Enum typepublic static EnumConverter<?> createEnumConverter(Class<? extends Enum<?>> enumType)
Enum types.enumType - type for the created converterpublic boolean equals(Object obj)
Copyright © 2017. All rights reserved.