title: Create a generic response item for java
body: <p>This is my question: my english is not the best.</p>
  
  <p>Create a generic response item for java.</p>
  
  <pre><code>public class GenericResponse(){
  
    private "generic class" a;
  
  }
  </code></pre>
  
  <p>i need in the constructor method setting the "class" type for the variable generic.</p>
  
  <pre><code>GenericResponse(t.class){
     a = t.class;
  }
  </code></pre>