public static interface CollectionRunner.ElementCollector<E,A>
SplitCollector
,
but does not subclass it, since the elements it accumulates are
not Splittables.Modifier and Type | Method and Description |
---|---|
void |
accumulate(E element,
A accumulator)
Consumes an element, accumulating it into the supplied accumulator.
|
A |
combine(A acc1,
A acc2)
Combines the content of two accumulators.
|
A |
createAccumulator()
Returns a new accumulator into which results can be collected.
|
A createAccumulator()
void accumulate(E element, A accumulator)
element
- object to accumulateaccumulator
- accumulatorA combine(A acc1, A acc2)
acc1
- one input accumulatoracc2
- other input accumulatorCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.