IntStream and collect

Paul Sandoz paul.sandoz at oracle.com
Mon May 13 00:55:24 PDT 2013


On May 13, 2013, at 9:03 AM, Jose <jgetino at telefonica.net> wrote:

> Hi, 
> 
> I'm missing a structure to collect IntStreams, instead of providing the
> supplier, the accumulator and the combiner separately.
> 
> Now I'm boxing, but I don't like this solution.
> 
> Is there any plans to provide an IntCollector class?, 
> 

Not at the moment.

Note that there is limited opportunity to collect primitives into a map or list-like things without boxing since the JDK lacks such primitive-optmized data structures.

What are you collecting to?

Paul.



More information about the lambda-dev mailing list