|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.convert.support.EnumToStringConverter
final class EnumToStringConverter
Simply calls Enum.name()
to convert a source Enum to a String.
Constructor Summary | |
---|---|
EnumToStringConverter()
|
Method Summary | |
---|---|
java.lang.String |
convert(java.lang.Enum<?> source)
Convert the source of type S to target type T. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
EnumToStringConverter()
Method Detail |
---|
public java.lang.String convert(java.lang.Enum<?> source)
Converter
convert
in interface Converter<java.lang.Enum<?>,java.lang.String>
source
- the source object to convert, which must be an instance of S
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |