public class ExecuteWhenDoneYielder<T> extends Object implements Yielder<T>
| Constructor and Description |
|---|
ExecuteWhenDoneYielder(Yielder<T> baseYielder,
Runnable runnable,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
T |
get()
Gets the object currently held by this Yielder.
|
boolean |
isDone()
Returns true if this is the last Yielder in the chain.
|
Yielder<T> |
next(T initValue)
Gets the next Yielder in the chain.
|
public T get()
Yielderpublic Yielder<T> next(T initValue)
Yielderpublic boolean isDone()
Yielderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2017. All rights reserved.