IntIterator
Paul Sandoz
paul.sandoz at oracle.com
Fri Dec 14 08:30:23 PST 2012
On Dec 14, 2012, at 5:15 PM, Remi Forax <forax at univ-mlv.fr> wrote:
> The current prototype declare a class IntIterator in java.util.stream.primitive,
> What is the status of this package ?
>
Ongoing... it changed today, I consolidated IntIterator into PrimitiveIterator.
> I don't think you need to make it visible for users, it can be used internally without being exported and seen by everyone.
> You can also remove the method iterator() and spliterator() from IntIterator given those are escape hatch and that users
> can already do boxed().iterator() and boxed().spliterator().
>
Library writers/integrators may need to create primitive streams from appropriate sources and it would be nice to avoid boxing on the input.
In source repo tip PrimitiveStreams is the primitive version of Streams.
Paul.
More information about the lambda-libs-spec-observers
mailing list