org.gcube.dataanalysis.ecoengine.utils
Class DynamicEnum
java.lang.Object
org.gcube.dataanalysis.ecoengine.utils.DynamicEnum
- Direct Known Subclasses:
- LMEEnum
public class DynamicEnum
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicEnum
public DynamicEnum()
addEnum
public <T extends Enum<?>> void addEnum(Class<T> enumType,
String enumName)
- Add an enum instance to the enum class given as argument
- Type Parameters:
T - the type of the enum (implicit)- Parameters:
enumType - the class of the enum to be modifiedenumName - the name of the new enum instance to be added to the class.
getFields
public Field[] getFields()
main
public static void main(String[] args)
Copyright © 2013. All Rights Reserved.