Java org.apache.commons.lang3 EnumUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang3 EnumUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang3 EnumUtils.

The text is from its open source code.

Subclass

org.apache.commons.lang3.EnumUtils has subclasses.
Click this link to see all its subclasses.

Method

EgetEnum(final Class enumClass, final String enumName)

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.

ListgetEnumList(final Class enumClass)

Gets the List of enums.

This method is useful when you need a list of enums rather than an array.

MapgetEnumMap(final Class enumClass)

Gets the Map of enums by name.

This method is useful when you need a map of enums by name.

booleanisValidEnum(final Class enumClass, final String enumName)

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.