A List from Iterator

Jason Mehrens jason_mehrens at hotmail.com
Thu Aug 28 16:51:59 UTC 2014


The stated reason is to discourage use of a 'poor man's collection'.  See Java Collections API Design FAQ (http://docs.oracle.com/javase/7/docs/technotes/guides/collections/designfaq.html) under the 'Collection Interface' section.


> From: pavel.rappo at oracle.com
> Subject: A List from Iterator
> Date: Thu, 28 Aug 2014 17:13:33 +0100
> To: core-libs-dev at openjdk.java.net
> 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.
> -Pavel

More information about the core-libs-dev mailing list