title: How to use java.lang.Enum
body: <p>This is not a question of the new features in enum.
  This is not a question that waits for an answer that says
  enum is equivalent to class xyz extends Enum. If you wish to preach on how enums are used, as found in numerous tutorials,  please don't answer.</p>
  
  <p>This question is specifically on how to use the class java.lang.Enum.
  Rather it is true that java.lang.Enum cannot be directly extended nor instantiated, right?
  It is true that java.lang.Enum is only for the benefit of enum type and nothing else right?</p>
  
  <p>If so, the variable colours is pretty meaningless, right? Even though the compiler allows it.</p>
  
  <pre><code>final static Enum&lt;colors&gt; colours = null;
  enum colors {"R","G","B"};
  </code></pre>
  
  <p>So, what could I possibly equate the variable colours besides null.</p>
  
  <p>of course, compiler won't allow me to do this</p>
  
  <pre><code>class BaseColour extends Enum&lt;BaseColour&gt;{ ,,,}
  </code></pre>
  
  <p>but it allows enum an unfair advantage to able to do it as a compiler's behind-the-curtains manipulation.</p>
  
  <p>I am asking this question because I wish to do something like these</p>
  
  <pre><code>class Reddish extends BaseColour {"Crimson", "Blood", "Pink"};
  class Purplish extends BaseColour {"Violet", "Evening Sky", "Brinjal"};
  class Greenish extends BaseColour {"Algae", "Leaf"};
  </code></pre>
  
  <p>I wish to pass any of these, and only any of these, enumerated types into a method</p>
  
  <pre><code>void squeezeColour(BaseColour colourConstraint)
  { ... }
  </code></pre>
  
  <p>Is it possible?
  /** If not, and if you happen to be James Gosling et al, would you kindly consider this for the next version of Java specs? **/</p>
  
  <p>Further addition to question: I forgot to say this ...
  What I am working on is using an EnumMap or EnumSet and exploiting the contains and range methods. Is that the best I could do?</p>