[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-lambda-dev
Subject:    hg: lambda/lambda/jdk: - pipeline wrapping spliterators should conform to spliterator contract
From:       paul.sandoz () oracle ! com (paul ! sandoz at oracle ! com)
Date:       2012-11-29 14:14:49
Message-ID: 20121129141511.E986147BC7 () hg ! openjdk ! java ! net
[Download RAW message or body]

Changeset: 2f52eeca15e5
Author:    psandoz
Date:      2012-11-29 15:14 +0100
URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/2f52eeca15e5

- pipeline wrapping spliterators should conform to spliterator contract
- obtain the size, if known, from a spliterator before traversing
operations are performed as such operations may be greedy and consume
elements thus affecting the size.
- when obtaining a spliterator for a depth 0 i.e. the source spliterator
try to return the best spliterator for use with parallel streams.

! src/share/classes/java/util/stream/AbstractPipeline.java
! src/share/classes/java/util/stream/StreamShapeFactory.java


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic