title: how to check if value (int) exists in Enum generic java android
body: <p>check if integer value exist in Enum constant Java
  Example</p>
  
  <pre><code>enum Days{
  SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY;
  }
  
  checkFunction(Days, 5) // true
  checkFunction(Days, -1) // false
  checkFunction(Days, 10) // false
  </code></pre>