|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ericaro.neoitertools.generators.CycleGenerator<T>
public class CycleGenerator<T>
Make a Generator returning elements from the Generator and saving a copy of each. When the Generator is exhausted, return elements from the saved copy. Repeats indefinitely.
| Constructor Summary | |
|---|---|
CycleGenerator(Generator<T> generator)
|
|
| Method Summary | |
|---|---|
T |
next()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CycleGenerator(Generator<T> generator)
| Method Detail |
|---|
public T next()
next in interface Generator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||