title: Java Enum List from Class
body: <p>How do I go from a <code>Class</code> object to a list of enums generically?</p>
  
  <p>i.e.</p>
  
  <pre><code>public static &lt;T extends Enum&gt; List&lt;T&gt; getList(Class&lt;T&gt; clazz)
  </code></pre>
  
  <p>I cant find a way to get to the <code>values()</code> method</p>