T - The type of the items in the iteratorpublic class FilteredIterator<T> extends Object implements Iterator<T>
Iterator that applies a Filter on the
wrapper iterator, suppressing items that do not match the filter. This may
result in an iterator that does not yield any items!| Constructor and Description |
|---|
FilteredIterator(Iterator<T> iterator,
Filter<? super T> filter)
Creates a new filtered iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingCopyright © 2026. All rights reserved.