E - The type of the iterated values.public final class Filtered<E> extends AbstractBaseIterator<E>
| Constructor and Description |
|---|
Filtered(java.util.Iterator<E> delegate,
Filter<E> filter)
Creates a filtered
Iterator that iterates the elements of the given Iterator if the given Filter evaluates to true for these elements. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
equals, hashCode, removepublic final boolean hasNext()
public final E next()