Package org.dom4j.tree
Class FilterIterator<T>
- java.lang.Object
-
- org.dom4j.tree.FilterIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
- Direct Known Subclasses:
ElementIterator
,ElementNameIterator
,ElementQNameIterator
public abstract class FilterIterator<T> extends java.lang.Object implements java.util.Iterator<T>
Deprecated.THIS CLASS WILL BE REMOVED IN dom4j-1.6 !!FilterIterator
is an abstract base class which is useful for implementors ofIterator
which filter an existing iterator.
-
-
Constructor Summary
Constructors Constructor Description FilterIterator(java.util.Iterator<T> proxy)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
proxy
protected java.util.Iterator<T> proxy
Deprecated.
-
-
Constructor Detail
-
FilterIterator
public FilterIterator(java.util.Iterator<T> proxy)
Deprecated.
-
-
Method Detail
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
next
public T next() throws java.util.NoSuchElementException
Deprecated.- Specified by:
next
in interfacejava.util.Iterator<T>
- Throws:
java.util.NoSuchElementException
-
remove
public void remove()
Deprecated.Always throws UnsupportedOperationException as this class does look-ahead with its internal iterator.- Specified by:
remove
in interfacejava.util.Iterator<T>
- Throws:
java.lang.UnsupportedOperationException
- always
-
matches
protected abstract boolean matches(T element)
Deprecated.Filter method to perform some matching on the given element.- Parameters:
element
- DOCUMENT ME!- Returns:
- true if the given element matches the filter and should be appear in the iteration
-
findNext
protected T findNext()
Deprecated.
-
-