T - generic parameter for this iterator instance: this iterator implements Iterator<T>InnerT - generic parameter of the wrapped iterator, must be T or extend Tpublic abstract class FilterIterator<T,InnerT extends T> extends Object implements Iterator<T>
Iterator implementation that filters elements with a boolean predicate.predicateFunction(InnerT)| Constructor and Description |
|---|
FilterIterator(Iterator<InnerT> baseIterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
protected abstract boolean |
predicateFunction(InnerT object)
returns true, if this element should be returned by
next(). |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.