jeudi 13 août 2015

Creating a parameterized java class with a string based parameter

Is is possible to create an instance of a parameterized class with a string based parameter like this :

String aType = "MyType";
AFoobarType<aType> aClassInstance = new AFoobarType<aType>(){
};

Thank you.





Aucun commentaire:

Enregistrer un commentaire