tee


Description:


public Collector<A,Object,G> tee<A,G> (owned Collector<Object,Object,G>[] downstreams, owned TeeMergeFunc<A> merger)

Returns a collector that consists of multiple downstream collectors. The elements are processed by all the downstream collectors, and then their results are merged using the merger function into the final result.

The Collector.features of the returned collector is intersection of the downstream collectors' features.

Parameters:

downstreams

an array of the downstream collectors -- must have at least one collector

merger

the merge function

Returns:

the collector implementation


Namespace: Gpseq.Collectors
Package: gpseq-1.0