public final class Enums
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Enum<T>> |
findByValue(java.lang.Class<T> enumType,
java.lang.String... values)
Search the given enum for a value that is equal to the one of the
given values, searching in an ascending manner.
|
@Nullable public static <T extends java.lang.Enum<T>> T findByValue(java.lang.Class<T> enumType, java.lang.String... values)
T
- the type of enumenumType
- the enum typevalues
- the list of values