Package io.datarouter.enums
Class CaseInsensitiveStringMappedEnum<E>
java.lang.Object
io.datarouter.enums.MappedEnum<E,String>
io.datarouter.enums.CaseInsensitiveStringMappedEnum<E>
Avoid this class if you don't need it, preferring a normal MappedEnum of Strings with case-sensitive logic.
If you can't avoid the need for case-insensitive mapping, this class helps with it.
-
Constructor Summary
ConstructorsConstructorDescriptionCaseInsensitiveStringMappedEnum(E[] values, Function<E, String> keyExtractor) CaseInsensitiveStringMappedEnum(E[] values, Function<E, String> keyExtractor, int maxLength) -
Method Summary
Methods inherited from class io.datarouter.enums.MappedEnum
from, fromOrElse, fromOrNull, fromOrThrow, getEnumClass, getSampleValue, getValueByKey, requireAllExist, requireAllExist, toKey
-
Constructor Details
-
CaseInsensitiveStringMappedEnum
-
CaseInsensitiveStringMappedEnum
-
-
Method Details
-
maxLength
public int maxLength()
-