I want to create class reference for Generic class .
I am having a generic class called GenericRtt coded as below:
package com.practice.rtt;
public class GenericRtt<T> {
private T s;
public T getS() {
return s;
}
public void setS(T s) {
this.s = s;
}
}
I want to create reference not instance of the class as .
Class <GenericRtt<String>> generics=(Class<GenericRtt<String>>) GenericRtt.class;
I don't know how to create class reference of the GenericRtt.