public class PredicateFilterDecoratingClosableIterator<T> extends Object implements CloseableIterator<T>
VariantContext Iterator such that only variants that satisfy
all predicates are emitted.
This class only exists because Iterators.filter(Iterator, Predicate) won't produce a CloseableIterator, which is
necessary.| Constructor and Description |
|---|
PredicateFilterDecoratingClosableIterator(CloseableIterator<T> underlyingIterator,
Collection<Predicate<T>> predicates) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic PredicateFilterDecoratingClosableIterator(CloseableIterator<T> underlyingIterator, Collection<Predicate<T>> predicates)
public void close()
close in interface CloseableIterator<T>close in interface Closeableclose in interface AutoCloseable