java.lang.Enum s.
| Access | Constructor and Description |
|---|---|
| protected | EnumConverter(Class<E>
enum class clazz)This constructor must be called by subclasses, providing the enum class as the parameter. |
| Modifier and Type | Method and Description |
|---|---|
| public E | convert(String value)
Implements jdk. Converts the given string value into a Java type. |
| private String | |
| public void | setDelimiters(String
delimiters for message string. Default is [,] delimiters)Sets the delimiters for the message string. |
| public String | valuePattern()
Implements jdk. Gives a string that describes the pattern of the values this converter expects, if any. |
| public Class | valueType()
Implements jdk. Gives the class of the type of values this converter converts to. |
| clazz | back to summary |
|---|---|
| private final Class<E> clazz | |
| delimiters | back to summary |
|---|---|
| private String delimiters | |
| EnumConverter | back to summary |
|---|---|
| protected EnumConverter(Class<E> clazz) This constructor must be called by subclasses, providing the enum class as the parameter.
| |
| convert | back to summary |
|---|---|
| public E convert(String value) Implements jdk. Doc from jdk. Converts the given string value into a Java type.
| |
| message | back to summary |
|---|---|
| private String message(String value) | |
| setDelimiters | back to summary |
|---|---|
| public void setDelimiters(String delimiters) Sets the delimiters for the message string. Must be a 3-letter string, where the first character is the prefix, the second character is the delimiter between the values, and the 3rd character is the suffix.
| |
| valuePattern | back to summary |
|---|---|
| public String valuePattern() Implements jdk. Doc from jdk. Gives a string that describes the pattern of the values this converter expects, if any. For example, a date
converter can respond with a
| |
| valueType | back to summary |
|---|---|
| public Class Implements jdk. Doc from jdk. Gives the class of the type of values this converter converts to.
| |