E
- the enum class to parse.public class EnumConverter<E extends Enum<E>> extends Object implements TypeConverter<E>
Constructor and 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-2023 The Apache Software Foundation. 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.