Package redempt.redlib.config.conversion
Class EnumConverter
java.lang.Object
redempt.redlib.config.conversion.EnumConverter
A converter which converts enum values
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum>
StringConverter<T>Creates an enum converter
-
Constructor Details
-
EnumConverter
public EnumConverter()
-
-
Method Details
-
create
Creates an enum converter- Type Parameters:
T
- The type- Parameters:
clazz
- The enum class- Returns:
- A StringConverter for the given enum type
-