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.
|
accumulate
public <OutType> Yielder<OutType> toYielder(OutType initValue, YieldingAccumulator<OutType,T> accumulator)
Sequence
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.Yielder
Copyright © 2011–2017. All rights reserved.