title: Create a superclass of enum
body: <p>I currently use an enum defined as such :</p>
  
  <pre><code>public enum Language{
      English("english", "eng", "en", "en_GB", "en_US"),
      German("german", "de", "ge"),
      Croatian("croatian", "hr", "cro"),
      Russian("russian");
  
      private final List&lt;String&gt; values;
  
      Language(String ...values) {
          this.values = Arrays.asList(values);
      }
  
      public List&lt;String&gt; getValues() {
          return values;
      }
      public static Language find(String name) {
          for (Language lang : Language.values()) {
              if (lang.getValues().contains(name)) {
                  return lang;
              }
          }
          return null;
      }
  }
  </code></pre>
  
  <p>Thing is, I will have to use several enums using the same methods and constructor. The only thing changing would in my case be the values of the enum itself. </p>
  
  <p>Is there a way for me to create a superclass of this enum that I could reuse ? </p>
  
  <p>So that I could do something like : </p>
  
  <pre><code>public Language extends(specializedEnum){
          English("english", "eng", "en", "en_GB", "en_US"),
          German("german", "de", "ge"),
          Croatian("croatian", "hr", "cro"),
          Russian("russian");
  }
  </code></pre>
  
  <p>Thank you by advance ! </p>