T - The type of the products and the iterator elementspublic class ProducerIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Iterator that iterates over all the objects produced by a delegate Producer.Producer| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Object |
AT_END |
private java.lang.Object |
nextElement |
private Producer<T> |
producer |
private static java.lang.Object |
UNKNOWN |
| Constructor and Description |
|---|
ProducerIterator(Producer<T> producer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |