Given the following class:
...
Class<? extends Enum<?>> enumType;
public MyClass(Class<? extends Enum<?>> enumType) {
super();
this.enumType=enumType;
...
How do i define a method that returns an Enum of the "enumType" class?
I need something like:
public enumType getValue(){
...
}
,but this doesn't work ..