Collectors inventory (original) (raw)

Brian Goetz brian.goetz at oracle.com
Thu Feb 21 15:01:30 PST 2013


As I promised a long time ago, here's an overview of what's in Collectors currently.

There are 12 basic forms:

The toXxx forms should be obvious.

Mapping has four versions, analogous to Stream.map:

GroupingBy has four forms:

GroupingReduce has four forms:

JoiningWith has four forms:

PartitioningBy has three forms:

PartitioningReduce has two forms:

Impl note: in any category, all but one are one-liners that delegate to the general form.

Plus, all the Map-bearing ones have a concurrent and non-concurrent version.



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