public class BaseSequence<T,IterType extends Iterator<T>> extends Object implements Sequence<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseSequence.IteratorMaker<T,IterType extends Iterator<T>> |
| Constructor and Description |
|---|
BaseSequence(BaseSequence.IteratorMaker<T,IterType> maker) |
| Modifier and Type | Method and Description |
|---|---|
<OutType> OutType |
accumulate(OutType initValue,
Accumulator<OutType,T> fn) |
static <T> Sequence<T> |
simple(Iterable<T> iterable) |
<OutType> Yielder<OutType> |
toYielder(OutType initValue,
YieldingAccumulator<OutType,T> accumulator) |
public BaseSequence(BaseSequence.IteratorMaker<T,IterType> maker)
public <OutType> OutType accumulate(OutType initValue,
Accumulator<OutType,T> fn)
accumulate in interface Sequence<T>Copyright © 2016. All rights reserved.