public class FlatMapIterator<T,U> extends AbstractIterator<U>
| Modifier and Type | Field and Description |
|---|---|
protected int |
index |
protected java.util.Iterator<T> |
inputIterator |
protected java.util.Queue<U> |
pushback |
current, exhausted, iterator, loaded| Constructor and Description |
|---|
FlatMapIterator(java.util.Iterator<T> iterator,
groovy.lang.Closure<? extends java.util.Collection<U>> mapping,
boolean withIndex) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
loadNext() |
protected java.util.Collection<U> |
performMapping(T next) |
protected void |
setDelegate(T next) |
hasNext, next, remove