E - The type of the iterated values.public final class Sieved<E> extends AbstractBaseIterator<E>
Iterator decorator which iterates all elements of the delegate which satisfy a given Predicate.| Constructor and Description |
|---|
Sieved(Predicate<E> predicate,
java.util.Iterator<E> delegate)
Creates a sieved
Iterator which iterates the elements of the given Iterator which match the given Predicate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
equals, hashCode, removepublic final boolean hasNext()
public final E next()