E1 - the type of elements in the input streamE2 - the type of elements in the output streampublic interface Generator<E1,E2>
Stream| Modifier and Type | Field and Description |
|---|---|
static Iteration |
iteration
The ongoing iteration.
|
| Modifier and Type | Method and Description |
|---|---|
E2 |
yield(E1 element)
|
static final Iteration iteration
E2 yield(E1 element) throws StreamSkipSignal, StreamStopSignal
element - the input elementStreamSkipSignal - if no element should be yielded from the input element (i.e. the element should
not contribute to the output stream)StreamStopSignal - if no further element should be yieldedRuntimeException - if no element can be yielded from the input elementCopyright © 2017. All Rights Reserved.