title: Why do we need Set and Map for Java Enum
body: <p>I am new to Enum.  While I am learning Enum, I came across EnumSet and EnumMap.  I understand that when dealing with map and set using EnumSet and EnumMap is much better than the hashing counterparts from this question.</p>
  
  <p><a href="https://stackoverflow.com/questions/14536665/why-an-enumset-or-an-enummap-is-likely-to-be-more-performant-than-their-hashed-c">Why an EnumSet or an EnumMap is likely to be more performant than their hashed counterparts?</a></p>
  
  <p>My question is</p>
  
  <p>In what scenarios do we need Map and Set for Enum in Java?</p>
  
  <p>I am more interested in knowing practical scenarios.</p>