jeudi 4 juin 2020

Check if a class is defined as generic type

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