Class FilterIterator<T>

java.lang.Object
org.dom4j.tree.FilterIterator<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
ElementIterator, ElementNameIterator, ElementQNameIterator

public abstract class FilterIterator<T> extends Object implements Iterator<T>
Deprecated.
THIS CLASS WILL BE REMOVED IN dom4j-1.6 !!

FilterIterator is an abstract base class which is useful for implementors of Iteratorwhich filter an existing iterator.

Version:
$Revision: 1.10 $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    Deprecated.
     
    private T
    Deprecated.
     
    protected Iterator<T>
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected T
    Deprecated.
     
    boolean
    Deprecated.
     
    protected abstract boolean
    matches(T element)
    Deprecated.
    Filter method to perform some matching on the given element.
    Deprecated.
     
    void
    Deprecated.
    Always throws UnsupportedOperationException as this class does look-ahead with its internal iterator.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Iterator

    forEachRemaining
  • Field Details

    • proxy

      protected Iterator<T> proxy
      Deprecated.
    • next

      private T next
      Deprecated.
    • first

      private boolean first
      Deprecated.
  • Constructor Details

    • FilterIterator

      public FilterIterator(Iterator<T> proxy)
      Deprecated.
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next() throws NoSuchElementException
      Deprecated.
      Specified by:
      next in interface Iterator<T>
      Throws:
      NoSuchElementException
    • remove

      public void remove()
      Deprecated.
      Always throws UnsupportedOperationException as this class does look-ahead with its internal iterator.
      Specified by:
      remove in interface Iterator<T>
      Throws:
      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.