| Modifier and Type | Class and Description |
|---|---|
class |
AReducingFunction<R,T>
Abstract base class for implementing a reducing function.
|
class |
AReducingFunctionOn<R,A,B>
Abstract base class for implementing a reducing function that chains to
another reducing function.
|
| Modifier and Type | Field and Description |
|---|---|
protected IReducingFunction<R,? super A> |
AReducingFunctionOn.rf |
| Modifier and Type | Method and Description |
|---|---|
<R> IReducingFunction<R,C> |
ITransducer.apply(IReducingFunction<R,? super B> rf)
Transforms a reducing function of B into a reducing function
of C.
|
static <R,T> IReducingFunction<R,? super T> |
Fns.completing(IStepFunction<R,? super T> sf)
Converts an step function into a complete reducing function.
|
| Modifier and Type | Method and Description |
|---|---|
<R> IReducingFunction<R,C> |
ITransducer.apply(IReducingFunction<R,? super B> rf)
Transforms a reducing function of B into a reducing function
of C.
|
static <R,T> R |
Impl.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 |
Impl.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.
|
static <R,A,B> R |
Fns.transduce(ITransducer<A,B> xf,
IReducingFunction<R,? super A> rf,
Iterable<B> input)
Reduces input using transformed reducing function.
|
| Constructor and Description |
|---|
AReducingFunctionOn(IReducingFunction<R,? super A> rf)
Constructs a reducing function that chains to the given
reducing function.
|
Copyright © 2014. All rights reserved.