RFR JDK-8011426: java.util collection Spliterator implementations (original) (raw)

Mike Duigou mike.duigou at oracle.com
Mon Apr 15 20:39:31 PDT 2013


I went back and started again with the 8010096 webrev.

Spliterators::

List/Set/Iterator/SortedSet::

Spliterator::

Spliterator.NONNULL - "This applies, for example, to ...". I might like the name Spliterator.NONULLS better.

Spliterator.IMMUTABLE - this name doesn't quite capture what's allowed and what's prohibited. An Arrays.asList() list is IMMUTABLE but elements can still be replaced in place. Collections.unmodifiableList(Array.asList(..)) is entirely immutable. Is the distinction ever important?

Mike

On Apr 10 2013, at 06:50 , Paul Sandoz wrote:

Hi,

Following up from JDK-8010096 [1] here is a webrev for spliterator implementations of collection classes in java.util: http://cr.openjdk.java.net/~psandoz/lambda/spliterator/jdk-8011426/webrev/ This is dependent on [1]. -- Note that for some reason the webrev script creates the jdk changeset file for my complete hg patch queue and not from the revision i specify. Anyone know how to change that? Paul.

[1] http://cr.openjdk.java.net/~psandoz/lambda/spliterator/jdk-8010096/webrev/



More information about the lambda-dev mailing list