Can you make a Class<T>?

I have a method

public <T> void delete(T deleteObject){

I from this information I need to derive a Class<T>. Is this posible? The reason is that I need to instanciate another class

public class Query<T> implements QueryInterface<T> {

with the constructor

public Query(Class<T> searchFor){

It is not possible to use deleteObject.getClass(), since it returns a Class<? extends Object>, which is not compatible with Class<T>.

Hope you can help!

Thanks up front!

[555 byte] By [MartinR-Ja] at [2007-10-2 0:01:19]
# 1
So far, I have just accepted the type warning which comes when I use Class instead of Class<T>. But please reply if you have a surgestion to how to avoid this.
MartinR-Ja at 2007-7-15 15:55:52 > top of Java-index,Core,Core APIs...