|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ericaro.neoitertools.generators.RepeatGenerator<T>
public class RepeatGenerator<T>
a Generator that returns object over and over again. Runs indefinitely Used as argument to imap() for invariant function parameters. Also used with izip() to create constant fields in a tuple record.
| Constructor Summary | |
|---|---|
RepeatGenerator(T object)
|
|
RepeatGenerator(T object,
int times)
|
|
| 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 RepeatGenerator(T object)
public RepeatGenerator(T object,
int times)
| 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 | |||||||||