T - type of elementspublic static class AsynchCollection.Listen<T> extends Object implements AsynchCollection<T>
AsynchCollection.Aggregator<T>, AsynchCollection.Keep<T>, AsynchCollection.Listen<T>, AsynchCollection.OneByOne<T>| Constructor and Description |
|---|
Listen(Listener<Collection<T>> onElementsReady,
Runnable onDone)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Called when no more elements will come.
|
boolean |
isDone()
Return true if the method done has been called already.
|
void |
newElements(Collection<T> elements)
Called when new elements are ready.
|
public Listen(Listener<Collection<T>> onElementsReady, Runnable onDone)
public void newElements(Collection<T> elements)
AsynchCollectionnewElements in interface AsynchCollection<T>public void done()
AsynchCollectiondone in interface AsynchCollection<T>public boolean isDone()
AsynchCollectionisDone in interface AsynchCollection<T>Copyright © 2017. All rights reserved.