final class IntegerToEnumConverterFactory extends java.lang.Object implements ConverterFactory<java.lang.Integer,java.lang.Enum>
Enum
by calling Class.getEnumConstants()
.Modifier and Type | Class and Description |
---|---|
private class |
IntegerToEnumConverterFactory.IntegerToEnum<T extends java.lang.Enum> |
Constructor and Description |
---|
IntegerToEnumConverterFactory() |
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.Integer,T> getConverter(java.lang.Class<T> targetType)
ConverterFactory
getConverter
in interface ConverterFactory<java.lang.Integer,java.lang.Enum>
T
- the target typetargetType
- the target type to convert to