public class EnumUtils
extends java.lang.Object
| Constructor and Description |
|---|
EnumUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Enum<T>> |
findEnumInsensitiveCase(java.lang.Class<T> enumType,
java.lang.String name)
Looks for an enumeration constant that matches the string without being case sensitive
|
public static <T extends java.lang.Enum<T>> T findEnumInsensitiveCase(java.lang.Class<T> enumType,
java.lang.String name)
T - - the enum type whose constant is to be returnedenumType - - the Class object of the enum type from which to return a constantname - - the name of the constant to returnjava.lang.IllegalArgumentException - – if the specified enum type has no constant with the
specified name, insensitive case