Yeah, interesting. I think "convert" has too much of an implication of the
resulting Iterator being independent of the underlying Enumeration, which it
isn't. "View" is a good word, but it has to be understood with a specific
meaning, e.g., List.subList creates a view of an underlying list. Perhaps
"wrapper" would be good because it explains exactly what's going on. I'll mull
this over a bit and see if I can come up with something better.
s'marks
On 5/16/15 12:25 PM, Chris Hegarty wrote:
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.ma...@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