title: Use Java 8 stream to convert enum to set
body: <p>I have an enum looks like:</p>
  
  <pre><code>public enum Movies {
  SCIFI_MOVIE("SCIFI_MOVIE", 1, "Scifi movie type"),
  COMEDY_MOVIE("COMEDY_MOVIE", 2, "Comedy movie type");
  
  private String type;
  private int id;
  private String name;
  
  Movies(String type, int id, String name) {
      this.type = type;
      this.id = id;
      this.name = name;
  }
  
  public int getId() {
      return id;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I know that I can use stream to create a Set of Movies <code>enum</code> with:</p>
  
  <pre><code>Set&lt;Movie&gt; Movie_SET = Arrays.stream(Movie.values()).collect(Collectors.toSet());
  </code></pre>
  
  <p>What if I want to create a Set of enum Movies id. Is there a way to do that with stream?</p>