public class EnumUtils extends Object
| Constructor and Description | 
|---|
| EnumUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends Enum<T>>  | findEnumInsensitiveCase(Class<T> enumType,
                       String name)Looks for an enumeration constant that matches the string without being case sensitive | 
public static <T extends Enum<T>> T findEnumInsensitiveCase(Class<T> enumType, 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 returnIllegalArgumentException - – if the specified enum type has no constant with the specified name, insensitive caseCopyright © 2008–2021. All rights reserved.