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()
Yielder
public Yielder<T> next(T initValue)
Yielder
public boolean isDone()
Yielder
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2017. All rights reserved.