Class FilterIterator<T>

java.lang.Object
org.apache.lucene.util.FilterIterator<T>
All Implemented Interfaces:
Iterator<T>

public abstract class FilterIterator<T> extends Object implements Iterator<T>
An Iterator implementation that filters elements with a boolean predicate.
See Also:
  • predicateFunction(T)
  • Constructor Details

    • FilterIterator

      public FilterIterator(Iterator<T> baseIterator)
  • Method Details

    • hasNext

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

      public final T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public final void remove()
      Specified by:
      remove in interface Iterator<T>