public interface WithMapReduce
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
reduce(BinaryOperator<T> accumulator,
T... items)
Reduce a number of items.
|
default <T> T |
reduce(T identity,
BinaryOperator<T> accumulator,
T... items)
Reduce a number of items.
|
default <T> T reduce(BinaryOperator<T> accumulator, T... items)
T - type of itemsaccumulator - the reducing operatoritems - the items to be reduceddefault <T> T reduce(T identity,
BinaryOperator<T> accumulator,
T... items)
T - type of itemsidentity - the identity, e.g. 0 for addition, 1 for multiplication.accumulator - the reducing operatoritems - the items to be reducedCopyright © 2021. All rights reserved.