public interface Yielder<T> extends Closeable
Modifier and Type | Method and Description |
---|---|
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.
|
T get()
Yielder<T> next(T initValue)
initValue
- the initial value to pass along to start the accumulation until the next yield() call or
iteration completes.boolean isDone()
Copyright © 2011–2017. All rights reserved.