Collectors.intCountAndSum()

Brian Goetz brian.goetz at oracle.com
Wed Jan 9 14:03:58 PST 2013


So, there's a "go one way or the other" aspect to this one.

On the one hand, if we're exposing IntCountANdSum, exposing the raw 
counters is sensible.

On the other hand, I'd like for IntCountAndSum to be a private 
implementation detail of average -- that Average would be a 
Collector<Integer,Double> rather than leaking IntCountAndSum.  Working 
on that now.

On 1/9/2013 4:57 PM, Aleksey Shipilev wrote:
> RFE: Can we actually have count() and sum() exposed from
> Collectors.intCountAndSum()? :)
>
> -Aleksey
>


More information about the lambda-dev mailing list