final class EnumToIntegerConverter extends AbstractConditionalEnumConverter implements Converter<java.lang.Enum<?>,java.lang.Integer>
Enum.ordinal()
to convert a source Enum to a Integer.
This converter will not match enums with interfaces that can be converted.Constructor and Description |
---|
EnumToIntegerConverter(ConversionService conversionService) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
convert(java.lang.Enum<?> source)
Convert the source object of type
S to target type T . |
matches
public EnumToIntegerConverter(ConversionService conversionService)
public java.lang.Integer convert(java.lang.Enum<?> source)
Converter
S
to target type T
.