final class StringToEnumConverterFactory extends java.lang.Object implements ConverterFactory<java.lang.String,java.lang.Enum>
Enum.valueOf(Class, String)
.Modifier and Type | Class and Description |
---|---|
private class |
StringToEnumConverterFactory.StringToEnum<T extends java.lang.Enum> |
Constructor and Description |
---|
StringToEnumConverterFactory() |
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.Enum> |
getConverter(java.lang.Class<T> targetType)
Get the converter to convert from S to target type T, where T is also an instance of R.
|
public <T extends java.lang.Enum> Converter<java.lang.String,T> getConverter(java.lang.Class<T> targetType)
ConverterFactory
getConverter
in interface ConverterFactory<java.lang.String,java.lang.Enum>
T
- the target typetargetType
- the target type to convert to