public final class Enums extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Enum<T>> |
findByValue(Class<T> enumType,
String... values)
Search the given enum for a value that is equal to the one of the
given values, searching in an ascending manner.
|
static <T extends Enum<T>> |
findFuzzyByValue(Class<T> enumType,
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 Enum<T>> T findByValue(Class<T> enumType, String... values)
T - the type of enumenumType - the enum typevalues - the list of values@Nullable public static <T extends Enum<T>> T findFuzzyByValue(Class<T> enumType, String... values)
Some fuzzy matching of the provided values may be performed.
T - the type of enumenumType - the enum typevalues - the list of valuesCopyright © 2015. All Rights Reserved.