| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Map | |
| private final EnumMap |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <T extends Enum | |
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Implements abstract com. Implements com. |
| private static <T> void | |
| private static <T extends Enum | |
| public Object | fromString(String
the String with the single value of the Object str)Implements abstract com. Implements com. |
| public String | toString(Object
the Object to be converted obj)Overrides com. Implements com. |
| enumType | back to summary |
|---|---|
| private final Class<T> enumType | |
| strings | back to summary |
|---|---|
| private final Map<String, T> strings | |
| values | back to summary |
|---|---|
| private final EnumMap<T, String> values | |
| EnumToStringConverter | back to summary |
|---|---|
| public EnumToStringConverter(Class<T> type) | |
| EnumToStringConverter | back to summary |
|---|---|
| public EnumToStringConverter(Class<T> type, Map<String, T> strings) | |
| EnumToStringConverter | back to summary |
|---|---|
| private EnumToStringConverter(Class<T> type, Map<String, T> strings, EnumMap<T, String> values) | |
| buildValueMap | back to summary |
|---|---|
| private static <T extends Enum | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Implements abstract com. Implements com. Doc from com. Determines whether the converter can marshall a particular type. | |
| checkType | back to summary |
|---|---|
| private static <T> void checkType(Class<T> type) | |
| extractStringMap | back to summary |
|---|---|
| private static <T extends Enum | |
| fromString | back to summary |
|---|---|
| public Object fromString(String str) Implements abstract com. Implements com. Doc from com. Unmarshals an Object from its single value representation. | |
| toString | back to summary |
|---|---|
| public String toString(Object obj) Overrides com. Implements com. Doc from com. Marshals an Object into a single value representation. | |