Is there a way to determine if an object is an instance of a generic type?
public test(Object obj) { if (obj instanceof T) { ... }
It would make more sense to put the restriction on where the type T is used to parametrise the Class type. When you pass the type in, instead of using something like Class>, you should use Class extends T>.
T
Class
Class>
Class extends T>