A List from Iterator
mike.duigou at oracle.com
Thu Aug 28 16:52:34 UTC 2014
We considered having Enumeration extend Iterator and provide next() and hasNext() defaults which called the Enumeration methods but found, unfortuantely that there were several Enumeration implementations that already had next().
If we were to provide a Collections util it would to wrap Enumeration as an Iterator but that's it.
On Aug 28 2014, at 09:13 , Pavel Rappo <pavel.rappo at oracle.com> wrote:
> 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.
More information about the core-libs-dev