Example usage for Java org.apache.commons.lang3 EnumUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
E | getEnum(final Class Gets the enum for the class, returning null if not found. This method differs from Enum#valueOf in that it does not throw an exception for an invalid enum name. |
List | getEnumList(final Class Gets the List of enums. This method is useful when you need a list of enums rather than an array. |
Map | getEnumMap(final Class Gets the Map of enums by name. This method is useful when you need a map of enums by name. |
boolean | isValidEnum(final Class Checks if the specified name is a valid enum for the class. This method differs from Enum#valueOf in that checks if the name is a valid enum without needing to catch the exception. |