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.
Constructor and Description |
---|
FilterIterator(Iterator proxy)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
findNext()
Deprecated.
|
boolean |
hasNext()
Deprecated.
|
protected abstract boolean |
matches(Object element)
Deprecated.
Filter method to perform some matching on the given element.
|
Object |
next()
Deprecated.
|
void |
remove()
Deprecated.
Always throws UnsupportedOperationException as this class does look-ahead
with its internal iterator.
|
protected Iterator proxy
public FilterIterator(Iterator proxy)
public Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
public void remove()
remove
in interface Iterator
UnsupportedOperationException
- alwaysprotected abstract boolean matches(Object element)
element
- DOCUMENT ME!protected Object findNext()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.