public final class ScalaReduceFunction<T> extends Object implements ReduceFunction<T>
ReduceFunction
.Constructor and Description |
---|
ScalaReduceFunction(scala.Function2<T,T,T> function) |
Modifier and Type | Method and Description |
---|---|
T |
reduce(T a,
T b)
The core method of ReduceFunction, combining two values into one value of the same type.
|
public T reduce(T a, T b)
ReduceFunction
reduce
in interface ReduceFunction<T>
a
- The first value to combine.b
- The second value to combine.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.