I would like to get the name of a generic parameter of a class. For instance :
public class A<B> {
...
}
and in this class i would like to the name of the class B. Like :
A<Solution> var = new A<Solution>();
I would like to have a way to have the String "Solution" somewhere in a method of A
If you have any idea i am here :)
Thank you !
Aucun commentaire:
Enregistrer un commentaire