|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ericaro.neoitertools.generators.YieldGenerator<T>
public class YieldGenerator<T>
A Generator based on a Yield statement. It does not support return value from the yield statement so that it can support java standard Iterator protocol.
| Constructor Summary | |
|---|---|
YieldGenerator(Yield<java.lang.Void,T> function)
|
|
| 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 YieldGenerator(Yield<java.lang.Void,T> function)
| Method Detail |
|---|
public T next()
throws java.util.NoSuchElementException
next in interface Generator<T>java.util.NoSuchElementException - when sequence is exhausted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||