public final class EnumConstant extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Enum<?>> |
get(Class<T> clazz,
int position,
T defaultValue)
Retrieves the enum-constant at the specified position in the value-array of the Enum
defined by the specified class.
|
public static <T extends Enum<?>> T get(Class<T> clazz, int position, T defaultValue)
T - the type of the Enumclazz - Class defining the Enum to read fromposition - the position of the constant in the value-arraydefaultValue - the default value to return if no constant was foundCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.