|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - value typepublic interface Series<T>
An infinite series of elements.
A series is a FIFO list of values where the values can be removed from the
list before they have been added. An invocation of consume() returns
a promise for what will be the next element in the list, once it is added, at
which time it will already have been removed. ;)
| Method Summary | |
|---|---|
Promise<T> |
consume()
Removes the first element in the series. |
Element<T> |
getFront()
Gets the front element. |
void |
produce(Promise<T> value)
Appends a value to the end of the series. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
Element<T> getFront()
void produce(Promise<T> value)
value - value to appendPromise<T> consume()
|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.