Package org.tailormap.api.configuration
Class CaseInsensitiveEnumConverter<T extends Enum<T>>
java.lang.Object
org.tailormap.api.configuration.CaseInsensitiveEnumConverter<T>
- Type Parameters:
T
- the enum type
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,
T>
public class CaseInsensitiveEnumConverter<T extends Enum<T>>
extends Object
implements org.springframework.core.convert.converter.Converter<String,T>
A utility class to convert a string to an enum in a case-insensitive way.