Package org.apache.lucene.util
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>
AnIterator
implementation that filters elements with a boolean predicate.- See Also:
predicateFunction(T)
-
-
Constructor Summary
Constructors Constructor Description FilterIterator(Iterator<T> baseIterator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
protected abstract boolean
predicateFunction(T object)
returns true, if this element should be returned bynext()
.void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-