public final class FilteringIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.Iterator<T> |
backing_iterator |
protected T |
next_item |
protected Predicate<T> |
predicate |
Constructor and Description |
---|
FilteringIterator(java.util.Collection<T> coll,
Predicate<T> pred)
Constructs a new FilteringIterator which returns only those elements of
|
FilteringIterator(java.util.Iterator<T> iter,
Predicate<T> pred)
Constructs a new FilteringIterator which returns all the elements
of
|
protected T next_item
protected java.util.Iterator<T> backing_iterator