public static final class CollectionsPlume.FilteredIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
FilteredIterator(java.util.Iterator<T> itor,
Filter<T> filter)
Create an iterator that only returns elements of
itor that match the given Filter. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public boolean hasNext(@GuardSatisfied CollectionsPlume.FilteredIterator<T> this)
hasNext in interface java.util.Iterator<T>public T next(@GuardSatisfied CollectionsPlume.FilteredIterator<T> this)
next in interface java.util.Iterator<T>public void remove(@GuardSatisfied CollectionsPlume.FilteredIterator<T> this)
remove in interface java.util.Iterator<T>