| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicEnum.DynamicEnumE |
| Constructor and Description |
|---|
DynamicEnum() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Enum<?>> |
addEnum(Class<T> enumType,
String enumName)
Add an enum instance to the enum class given as argument
|
Field[] |
getFields() |
static void |
main(String[] args) |
public <T extends Enum<?>> void addEnum(Class<T> enumType, String enumName)
T - the type of the enum (implicit)enumType - the class of the enum to be modifiedenumName - the name of the new enum instance to be added to the class.public Field[] getFields()
public static void main(String[] args)
Copyright © 2022. All Rights Reserved.