public class PredicateFilterDecoratingClosableIterator<T> extends Object implements htsjdk.samtools.util.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(htsjdk.samtools.util.CloseableIterator<T> underlyingIterator,
Collection<com.google.common.base.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(htsjdk.samtools.util.CloseableIterator<T> underlyingIterator, Collection<com.google.common.base.Predicate<T>> predicates)
public void close()
close in interface htsjdk.samtools.util.CloseableIterator<T>close in interface Closeableclose in interface AutoCloseable