Returns a collector that performs a reduction operation on the elements.
accumulator |
an accumulate function |
combiner |
a combine function |
identity |
an identity value |
the collector implementation |