public class FilteringIterator<E> extends Object implements Iterator<E>
Iterator
impls that can leave out the elements of incompatible types that
optionally don't conform to provided filter.
This implementation does NOT support null elements returned by the decorated iterator.
Constructor and Description |
---|
FilteringIterator(Iterator<?> iterator,
Class<E> resultType,
Filter<? super E> filter) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.