title: Java enum overkill?
body: <p>I have often the situation where I need a variable for a class that could be represented as simple enum type, for example:</p>
  
  <pre><code>private enum PageOrder {DOWN_THEN_OVER, OVER_THEN_DOWN};
  </code></pre>
  
  <p>If a declare the enum type within the class that holds the variable then I have to use the qualified name <code>MyClass.PageOrder</code> which is not comfortable.
  But if I create a new class I have a class for just a simple enum declaration, which seems overkill for me.</p>
  
  <p>For that reason, I frequently use integers instead of enum type.</p>
  
  <p>Any comments/suggestions on this topic?</p>