As far as I know, there is no way to do what you want directly - no type parameters are present at runtime.
If you need to check, your best bet is to take a class literal as argument, for example to the constructor. As a trick, use T as type parameter for the class, like this:
Hope this helps!
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad: