| Constructor and Description |
|---|
MappedSequence(Sequence<T> baseSequence,
Function<? super T,? extends Out> fn) |
| Modifier and Type | Method and Description |
|---|---|
<OutType> OutType |
accumulate(OutType initValue,
Accumulator<OutType,Out> accumulator)
Accumulate this sequence using the given accumulator.
|
<OutType> Yielder<OutType> |
toYielder(OutType initValue,
YieldingAccumulator<OutType,Out> accumulator)
Return a Yielder for accumulated sequence.
|
public <OutType> OutType accumulate(OutType initValue,
Accumulator<OutType,Out> accumulator)
Sequenceaccumulate in interface Sequence<Out>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.public <OutType> Yielder<OutType> toYielder(OutType initValue, YieldingAccumulator<OutType,Out> accumulator)
SequencetoYielder in interface Sequence<Out>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.YielderCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.