maybe this is not a big problem, but i could not figure it out. Is there a way to check if a class is defined as a generic type. I don't want to define an instance of this class, i just want somehow to know, if this class is defined as a normal class or as generic type class.
public class MyGenericClass<T, G> {
public void someMethod(T firstParam, G secondParam){
// do something
}
}
Aucun commentaire:
Enregistrer un commentaire