title: How to initiate a HashSet with Enumeration Values?
body: <p>I am working with a library with a method with have a HashSet with enumaration parameter, and i ain't able to call that method. I think that question is probably easiest that i think, but i have this problem from two days.
  Follow the method in library:</p>
  
  <pre><code>public int searchCard(HashSet&lt;CardSlotTypeEnum&gt; var1, int var2, OnCardInfoListener var3) {
      if(var2 &gt;= 0 &amp;&amp; var3 != null) {
          u.a().a(var1, var2, var3);
          return 0;
      } else {
          return -2;
      }
  }
  </code></pre>
  
  <p>Follow the enumaration CardSlotTypeEnum:</p>
  
  <pre><code>public enum CardSlotTypeEnum {
      ICC1,
      ICC2,
      ICC3,
      PSAM1,
      PSAM2,
      PSAM3,
      RF,
      SWIPE,
  }
  </code></pre>
  
  <p>Follow my code:</p>
  
  <pre><code>reader = deviceEngine.getCardReader();
  OnCardInfoListener info = new OnCardInfoListener() {};
  HashSet&lt;CardSlotTypeEnum&gt; teste = new HashSet&lt;CardSlotTypeEnum&gt;();
  
  reader.searchCard(teste,60,info);
  </code></pre>
  
  <p>I'm having problems to initialize the 'teste' variable, this way was the only that don't are giving some message of error to me, but in this case the 'teste' aren't receiving nothing.</p>
  
  <p>If someone could help me, I would be grateful.</p>