RFR(s): 8072726: add adapter to convert Enumeration to Iterator (original) (raw)

Chris Hegarty chris.hegarty at oracle.com
Sat May 16 19:25:27 UTC 2015


This looks very useful. The javadoc reads well, and I think it is pitched at the right level ( view the Enumeration as an Iterator ). I expected to see ‘view’ or ‘convert’ in the javadoc, but what you have reads fine too.

-Chris.

On 16 May 2015, at 01:37, Stuart Marks <stuart.marks at oracle.com> wrote:

Hi all, Please review this small API enhancement to add a default method "asIterator()" to Enumeration that converts it into an Iterator. Webrev: http://cr.openjdk.java.net/~smarks/reviews/8072726/webrev.0/ Bug: https://bugs.openjdk.java.net/browse/JDK-8072726 Thanks, s'marks



More information about the core-libs-dev mailing list