Like, for example, you have the following:
public class House<T> { private Class<?> clazz; public House() { this.clazz = this.getTypeOfClass(); //needs implementation, but how? } }
What I don't want to use is the instanceof call, because "T" can be nearly anything.
Edited by Teron, 15 October 2008 - 17:00.