public abstract class FilterIterator extends Object implements Iterator
FilterIterator
is an abstract base class which is useful
for implementors of Iterator
which filter an existing iterator.
Modifier and Type | Field and Description |
---|---|
private boolean |
first |
private Object |
next |
protected Iterator |
proxy |
Constructor and Description |
---|
FilterIterator(Iterator proxy) |
Modifier and Type | Method and Description |
---|---|
protected Object |
findNext() |
boolean |
hasNext() |
protected abstract boolean |
matches(Object element)
Filter method to perform some matching on the given element.
|
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public FilterIterator(Iterator proxy)
public Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
protected abstract boolean matches(Object element)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses