public abstract class FilterIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
 FilterIterator is an abstract base class which is useful for
 implementors of Iteratorwhich filter an existing iterator.
 
| Modifier and Type | Field and Description | 
|---|---|
protected java.util.Iterator<T> | 
proxy
Deprecated.  
  | 
| Constructor and Description | 
|---|
FilterIterator(java.util.Iterator<T> proxy)
Deprecated.  
  | 
| Modifier and Type | Method and Description | 
|---|---|
protected T | 
findNext()
Deprecated.  
  | 
boolean | 
hasNext()
Deprecated.  
  | 
protected abstract boolean | 
matches(T element)
Deprecated.  
Filter method to perform some matching on the given element. 
 | 
T | 
next()
Deprecated.  
  | 
void | 
remove()
Deprecated.  
Always throws UnsupportedOperationException as this class does look-ahead
 with its internal iterator. 
 | 
protected java.util.Iterator<T> proxy
public FilterIterator(java.util.Iterator<T> proxy)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next() throws java.util.NoSuchElementException
next in interface java.util.Iterator<T>java.util.NoSuchElementExceptionpublic void remove()
remove in interface java.util.Iterator<T>java.lang.UnsupportedOperationException - alwaysprotected abstract boolean matches(T element)
element - DOCUMENT ME!protected T findNext()