E
- the enum class to parse.TypeConverter<E>
public class EnumConverter<E extends Enum<E>> extends Object implements TypeConverter<E>
Constructor | Description |
---|---|
EnumConverter(Class<E> clazz) |
public E convert(String s)
TypeConverter
convert
in interface TypeConverter<E extends Enum<E>>
s
- the String to convert. Cannot be null
.Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.