mardi 24 février 2015

how to get a class reference to parameterized type

Is there any chance to assign to class reference the parameterized type eg.



Class<Set> c1= Set.class; //OK
Class<Set<Integer>> c2 = Set<Integer>.class; //Makes error





Aucun commentaire:

Enregistrer un commentaire