A List from Iterator

Jochen Theodorou blackdrag at gmx.org
Thu Aug 28 16:30:41 UTC 2014

Am 28.08.2014 18:13, schrieb Pavel Rappo:
> Hi everyone,
> Is there any particular reason why there's no convenience method for iterators similar to j.u.Collections.list for enumerations? Or at least the one that adapts Iterator to Enumeration and vice versa. Thanks.

my opinion:
Enumeration is pre java 1.2. Back then java we to get away from that to 
collections already. Now it is probably streams. Besides supporting old 
code, there is rarely a good reason to support Enumeration in anything.

bye Jochen

Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org

More information about the core-libs-dev mailing list