title: How do I reimplement valueof on enumeration
body: <p>I need to re-implement the enum.valueof method of a few of my enumerations so they no longer throw exceptions, instead they simply return null if a value doesn't exist in the enumeration.</p>
  
  <p>I'm trying the basic </p>
  
  <pre><code>@Override
      public static &lt;T extends Enum&lt;T&gt;&gt; T valueOf(Class&lt;T&gt; enumType,
              String name){
  </code></pre>
  
  <p>but it's not working, saying I need to override or implement a super type.  </p>
  
  <p>I can come up with a super class I guess, but I'm just not sure how to put this together.  Any ideas?</p>