title: Java - Access values in generic enum
body: <p>Is there a way to use the "values()" method from a generic enum ?</p>
  
  <pre><code>public class TCP_Message&lt;T extends Enum&lt;T&gt;&gt; {
  
      public T anEnum;
  
      public void doSomething() {
          anEnum = T.values().values[0];
      }
  }
  </code></pre>
  
  <p>this code does not allow me to access .values().</p>