public class MergeSequence<T> extends YieldingSequenceBase<T>
| Constructor and Description |
|---|
MergeSequence(com.google.common.collect.Ordering<T> ordering,
Sequence<Sequence<T>> baseSequences) |
| Modifier and Type | Method and Description |
|---|---|
<OutType> Yielder<OutType> |
toYielder(OutType initValue,
YieldingAccumulator<OutType,T> accumulator)
Return an Yielder for accumulated sequence.
|
accumulatepublic <OutType> Yielder<OutType> toYielder(OutType initValue, YieldingAccumulator<OutType,T> accumulator)
SequenceOutType - 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–2017. All rights reserved.