public class GenericClass<T> {
private final Class<T> clazz;
public GenericClass(Class<T> clazz) {
this.clazz = clazz;
}
}
public Test extends GenericClass<Person.class> {
public Test() {
super(Person.class);
}
}
in the Generic class, I will be passing clazz (in this case Person.class) as an argument in one of the methods, but now I want to pass clazz[] (in this case Person[].class) in another method inside Generic class. How do I do that? how can I get clazz[] from clazz i.e., Person[].class from Person.class