Package com.github.toolarium.common.util
Class EnumUtil
java.lang.Object
com.github.toolarium.common.util.EnumUtil
Simple enum utilities.
-
Method Summary
-
Method Details
-
getInstance
Get the instance- Returns:
- the instance
-
valueOf
Returns the enum constant of the specified enum type with the specified name. The name must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Type Parameters:
T- the type- Parameters:
enumType- the Class object of the enum type from which to return a constantname- the name of the constant to return- Returns:
- the enum constant of the specified enum type with the specified name
-