title: Generic Method in Non-Generic Class
body: <p>I am trying to use a generic method so I don't have to repeat code. I have tried:</p>
  
  <pre><code>private Listener createListenerAdapter(Class&lt;T&gt; clazz)
  { 
     // do something
  }
  </code></pre>
  
  <p>(<code>clazz</code> being important because <code>class</code> is reserved).</p>
  
  <p>But Netbeans complains that : "Cannot find symbol class T".</p>
  
  <p>I am going to be passing in a few different classes that have the same methods on them. Where am I supposed to define T?</p>