public abstract class YieldingSequenceBase<T> extends Object implements Sequence<T>
| Constructor and Description |
|---|
YieldingSequenceBase() |
| Modifier and Type | Method and Description |
|---|---|
<OutType> OutType |
accumulate(OutType initValue,
Accumulator<OutType,T> accumulator)
Accumulate this sequence using the given accumulator.
|
public <OutType> OutType accumulate(OutType initValue,
Accumulator<OutType,T> accumulator)
Sequenceaccumulate in interface Sequence<T>OutType - the type of accumulated value.initValue - the initial value to pass along to start the accumulation.accumulator - the accumulator which is responsible for accumulating input values.Copyright © 2011–2017. All rights reserved.