public class FilteringIterator<T> extends AbstractIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
index |
current, exhausted, iterator, loaded| Constructor and Description |
|---|
FilteringIterator(java.util.Iterator<T> iterator,
groovy.lang.Closure<java.lang.Boolean> predicate,
boolean withIndex) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
callFilter() |
protected void |
loadNext() |
protected void |
setDelegate() |
hasNext, next, removepublic FilteringIterator(java.util.Iterator<T> iterator, groovy.lang.Closure<java.lang.Boolean> predicate, boolean withIndex)
protected void loadNext()
loadNext in class AbstractIterator<T>protected boolean callFilter()
protected void setDelegate()