title: getting .class for List <int> in java
body: <p>I have the following function</p>
  
  <p>EDIT: Changed int to class Long</p>
  
  <pre><code>protected &lt;T&gt; ApiResponse&lt;T&gt; getApiResponse(Object obj, Class&lt;T&gt; clasx) 
  </code></pre>
  
  <p>How can I pass <code>List&lt;Long&gt;</code> class as the second argument?</p>
  
  <p>Can I pass <code>List&lt;Long&gt;.class</code> but that is not working?</p>