Convert Enumeration to a Set/List
Asked 07 September, 2021
Viewed 3K times
  • 63
Votes

Is there some one-liner bridge method to dump a given Enumeration to java.util.List or java.util.Set?

Something built-in like Arrays.asList() or Collection.toArray() should exist somewhere, but I'm unable to find that in my IntelliJ debugger's evaluator window (and Google/SO results, too).

7 Answer