public abstract class FilterIterator<T> extends Object implements Iterator<T>
Iterator
implementation that filters elements with a boolean predicate.predicateFunction(T)
Constructor and Description |
---|
FilterIterator(Iterator<T> baseIterator) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
protected abstract boolean |
predicateFunction(T object)
returns true, if this element should be returned by
next() . |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
Copyright © 2000–2023 The Apache Software Foundation. All rights reserved.