Collectors inventory

Joe Bowbeer joe.bowbeer at
Wed Mar 6 14:57:38 PST 2013

I don't know what toStatistics does and can't guess, so I don't favor
making it top-level on primitive streams.

I'd rather encapsulate this inside Collectors where there is a chance that
some overview documentation might explain what these more arcane
(user-friendly?) Collectors methods do.

I'm all in favor or name changes that make them more self-explanatory.
 toMap seems like a step in that direction.


On Wed, Mar 6, 2013 at 2:51 PM, Brian Goetz <brian.goetz at> wrote:

> Breaking this into multiple messages.
> > 3. Move toStatistics directly to IntStream, LongStream, DoubleStream
> instead of using stream.collect(toStatistics())
> No objection to adding these to IntStream and friends (one-liner), but I
> think it also has to stay in Collectors, so that you can do things like
> gather statistics on properties of object streams, such as "sales volume
> statistics by salesman" queries.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the lambda-libs-spec-experts mailing list