java - Getting the array Class<?> of a given class -
given class<?>
describes class a
, somehow possible class<?>
matches class a[]
?
class<?> clazz = a.class; class<?> arrayclazz = clazz.toarray(); // ?? assert arrayclazz.equals(a[].class);
given class<?>
describes class a
, somehow possible class<?>
matches class a[]
?
class<?> clazz = a.class; class<?> arrayclazz = clazz.toarray(); // ?? assert arrayclazz.equals(a[].class);
Comments
Post a Comment