public class FilterIterator<T> extends Object implements Iterator<T>
Modifier and Type | Class and Description |
---|---|
static interface |
FilterIterator.Predicate<T>
Interface for evaluating whether an object should be returned by the iterator
|
Constructor and Description |
---|
FilterIterator(Iterator<T> iter,
FilterIterator.Predicate<T> predicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove()
Throws UnsupportedOperationException
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public FilterIterator(Iterator<T> iter, FilterIterator.Predicate<T> predicate)
Copyright © 2001–2017 University Health Network. All rights reserved.