|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.clareo.coroutines.user.StaticPattern<E,A>
public class StaticPattern<E,A>
Constructor Summary | |
---|---|
StaticPattern(A[] toSend)
|
|
StaticPattern(A initial,
A[] toSend)
|
Method Summary | |
---|---|
void |
closed()
Called when coroutine has been closed |
A |
init()
Generate value sent to coroutine on the first yield |
void |
noNextElement()
Called when coroutine has been closed because it was unable to generate more results |
A |
respondTo(E produced)
Generates the next value sent to coroutine after some yield has generated produced |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticPattern(A initial, A[] toSend)
public StaticPattern(A[] toSend)
Method Detail |
---|
public void closed()
Controler
closed
in interface Controler<E,A>
public A init()
Controler
yield
init
in interface Controler<E,A>
public void noNextElement()
Controler
noNextElement
in interface Controler<E,A>
public A respondTo(E produced) throws java.lang.IllegalStateException
Controler
yield
has generated produced
respondTo
in interface Controler<E,A>
produced
- last yielded value
java.lang.IllegalStateException
- Controler
may throw this exception to forcibly
close underlying coroutine
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |