|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ericaro.neoitertools.generators.TeeGeneratorFactory<T>
public class TeeGeneratorFactory<T>
Creates n independent iterators from a single source sequence.
| Nested Class Summary | |
|---|---|
class |
TeeGeneratorFactory.TeeGenerator
|
| Constructor Summary | |
|---|---|
TeeGeneratorFactory(Generator<T> source)
|
|
| Method Summary | |
|---|---|
Generator<T> |
newInstance()
every iterator returned will start iterating over the source at its current position, this depend on the current state of every iterator. |
protected void |
tee()
peek one value from the source, and push it in every buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TeeGeneratorFactory(Generator<T> source)
| Method Detail |
|---|
protected void tee()
public Generator<T> newInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||