My class starts with
public abstract class LastActionHero(){
Now somewhere in the code I want to write H.class<
H.class<
One way is to keep reference to your parameterized type like having an attribute of
private Class clazz;
And create a setter or a constructor that takes in a Class.
Class
Parameterized Types are erased at runtime, hence why you can't do what you ask.