Given a class with the following structure. I am trying to determine the type of parameter T assigned by the caller of a generic method.
public class MyClass{ public <T> Boolean IsSupportable() { Class typeOfT;
In C #, I would use "default (T)" or "typeof (T)", but I'm trying to do this in Java. Does anyone know how I can do this? I don't need an instance, I just need a class definition.
source share