Round 1 feedback

Paul Sandoz paul.sandoz at oracle.com
Wed Jan 9 07:55:58 PST 2013


On Jan 9, 2013, at 3:53 PM, Brian Goetz <brian.goetz at Oracle.COM> wrote:
>> - The other main Guava uses that remained were Multimaps - and there
>> were many. Any plans to support them?;
> 
> Yes!  But indirectly.  One reason we moved from
> 
>   stream.groupBy(f)
> to
>   stream.collect(groupBy(f))
> 
> is so that the collecting/grouping/reducing was decoupled from the 
> stream library itself, through an abstraction such as Reducer/Collector. 
>  The Map type now appears as a type parameter to the Reducer/Collector, 
> rather than burned into the return type of groupBy.  The upshot is that 
> Guava can add a few dozen lines of code to export Multimap-bearing 
> reductions/collections (or you could) and then you could do:
> 
>   stream.collect(groupToMultimap(f))
> 
> and have a Guava multimap.
> 

+1 

I interpreted the question as "are we going to add a Multimap class to the JDK?".

Paul.


More information about the lambda-dev mailing list