Possible Duplicate:
How to determine the class of a generic type?
Given the code like this:
MyClass<SomeOtherClass> = new MyClass<SomeOtherClass>();
public class MyClass<T> implements IMyClass<T>
{
public MyClass()
{
//I need to get class of SomeOtherClass
}
}
Is it possbile to do something like this in Java?
Updated for more clarity