public abstract class EnumConverter<E extends Enum<E>> extends Object implements ValueConverter<E>
Enums.| Modifier | Constructor and Description | 
|---|---|
| protected  | EnumConverter(Class<E> clazz)This constructor must be called by subclasses, providing the enum class as the parameter. | 
| Modifier and Type | Method and Description | 
|---|---|
| E | convert(String value)Converts the given string value into a Java type. | 
| void | setDelimiters(String delimiters)Sets the delimiters for the message string. | 
| String | valuePattern()Gives a string that describes the pattern of the values this converter expects, if any. | 
| Class<E> | valueType()Gives the class of the type of values this converter converts to. | 
public E convert(String value)
ValueConverterconvert in interface ValueConverter<E extends Enum<E>>value - the string to convertpublic Class<E> valueType()
ValueConvertervalueType in interface ValueConverter<E extends Enum<E>>public void setDelimiters(String delimiters)
delimiters - delimiters for message string. Default is [,]public String valuePattern()
ValueConverterdate format string.valuePattern in interface ValueConverter<E extends Enum<E>>null if there's nothing interesting hereCopyright © 2017. All Rights Reserved.