public class Impl extends Object
| Constructor and Description |
|---|
Impl() |
| Modifier and Type | Method and Description |
|---|---|
static <R,T> R |
reduce(IReducingFunction<R,? super T> f,
R result,
Iterable<T> input)
Applies given reducing function to current result and each T in input, using
the result returned from each reduction step as input to the next step.
|
static <R,T> R |
reduce(IReducingFunction<R,? super T> f,
R result,
Iterable<T> input,
AtomicBoolean reduced)
Applies given reducing function to current result and each T in input, using
the result returned from each reduction step as input to the next step.
|
public static <R,T> R reduce(IReducingFunction<R,? super T> f, R result, Iterable<T> input)
R - the type of the resultT - the type of each item in inputf - a reducing functionresult - an initial result valueinput - the input to processpublic static <R,T> R reduce(IReducingFunction<R,? super T> f, R result, Iterable<T> input, AtomicBoolean reduced)
R - the type of the resultT - the type of each item in inputf - a reducing functionresult - an initial result valueinput - the input to processreduced - a boolean flag that can be set to indicate that the reducing process
should stop, even though there is still input to processCopyright © 2014. All rights reserved.