public abstract class FilterIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
next |
protected java.util.Iterator<T> |
subIterator |
| Constructor and Description |
|---|
FilterIterator(java.util.Iterator<T> subIterator)
Construct a filter iterator from the given sub iterator
|
public FilterIterator(java.util.Iterator<T> subIterator)
subIterator - the sub iterator over which we'll filterprotected abstract boolean matches(T value)
value - the value to checkpublic boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>