public class EnumUtility extends Object
| Constructor and Description |
|---|
EnumUtility() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
getSupportedEnumValues(Class<T> clazz,
String... names)
Method for version compatibility - enums can have different values with
different versions.
|
public static <T> List<T> getSupportedEnumValues(Class<T> clazz, String... names) throws NullPointerException
T - Enum class with values() and name() method.clazz - Class of the enumnames - Names of the enum variables to getNullPointerException - If class or names is nullCopyright © 2018. All rights reserved.