Fwd: Re: Collectors inventory

Joe Bowbeer joe.bowbeer at gmail.com
Thu Jun 13 13:31:12 PDT 2013


(joining to list.)
---------- Forwarded message ----------
From: "Brian Goetz" <brian.goetz at oracle.com>
Date: Jun 13, 2013 11:02 AM
Subject: Re: Collectors inventory
To: "Joe Bowbeer" <joe.bowbeer at gmail.com>
Cc:

Yeah, that could work too.  What do people think?

On 6/13/2013 1:47 PM, Joe Bowbeer wrote:

> concatenating seems very long. Just call it joining()?
>
> I'm also wondering if the string nature of these formerly toString
> methods is clear from the new names.
>
> On Jun 13, 2013 10:14 AM, "Brian Goetz" <brian.goetz at oracle.com
> <mailto:brian.goetz at oracle.com**>> wrote:
>
>     After working through the Collectors, here's the current inventory,
>     which is looking pretty good:
>
>        - Collections
>          - toCollection(supplier)
>          - toList()
>          - toSet()
>          - toMap x3: keyMapper, valueMapper [, mergeFn [, mapSupplier ] ]
>          - toConcurrentMap x3
>
>        - Grouping combinators
>          - groupingBy x3: classifier [, downstream [, mapSupplier ] ]
>          - groupingByConcurrent x3
>          - partitioningBy x2: predicate [, mapSupplier ]
>
>        - Mapping combinators
>          - mapping(f, downstream)
>
>        - String-specific reductions
>          - concatenating()
>          - joining x2: delimiter [, prefix, suffix ]
>
>        - Reductions:
>          - reducing x3: reducer [, identity [, mapper ] ]
>          - counting()
>          - minBy(comparator)
>          - maxBy(comparator)
>          - summing{Int,Long,Double}(__**extractorFn)
>          - averaging{Int,Long,Double}(__**extractorFn)
>          - summarizing{Int,Long,Double}(_**_extractorFn)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130613/cbf5369b/attachment.html 


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