samedi 24 janvier 2015

Creating collection of objects obtained via reflection

Lets say I got some Object o and o instanceof XXX == true. I now want to create (at runtime) ArrayList of type XXX like that ArrayList<XXX>(). Is there any way to do that? I currently create just ArrayList<Object> but it's not enough.






Aucun commentaire:

Enregistrer un commentaire