How can I convert java.lang.reflect.Type to Class clazz?
java.lang.reflect.Type
Class clazz
If I have one method as next which has an argument of Class
Class
You have to ensure that type is an instance of Class, and then cast it.
type
if (type instanceof Class) { Class> clazz = (Class>) type; otherMethod(clazz); }
Of course, you also have to handle the case of it not being a Class.