title: How to get all enum values in Java?
body: <p>I came across this problem that I without knowing the actual <code>enum</code> type I need to iterate its possible values.</p>
  
  <pre><code>if (value instanceof Enum){
     Enum enumValue = (Enum)value;
  }
  </code></pre>
  
  <p>Any ideas how to extract from enumValue its possible values ?</p>