title: How to determine lowest/highest index of enum in java?
body: <p>Suppose there is the enum declaration somewhere in code:</p>
  
  <pre><code>enum Colors { RED(100), BLUE(200); }
  </code></pre>
  
  <p>Can I get the lowest/highest index value for that particular enum type presuming I am not aware of the declaration?  Is it possible in java?</p>
  
  <p>Example:</p>
  
  <pre><code>int lowIndex = Colors.minIndex(); // should return 100
  </code></pre>
  
  <hr>
  
  <p>Thanks everyone.  So there are no implicit methods to query for min/max defined integer value.  I'll have to iterate through the enum values and determine it from there as you have described.</p>