Class EnumConverter<E extends Enum<E>>
java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.EnumConverter<E>
- Type Parameters:
E
- the enum class to parse.
- All Implemented Interfaces:
TypeConverter<E>
- Since:
- 2.1 moved from TypeConverters
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EnumConverter
-
-
Method Details
-
convert
Description copied from interface:TypeConverter
Converts a String to a given type.- Specified by:
convert
in interfaceTypeConverter<E extends Enum<E>>
- Parameters:
s
- the String to convert. Cannot benull
.- Returns:
- the converted object.
-