htsjdk.samtools.util.CloseableIterator<T>, Closeable, AutoCloseable, Iterator<T>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 | Description |
|---|---|
PredicateFilterDecoratingClosableIterator(htsjdk.samtools.util.CloseableIterator<T> underlyingIterator,
Collection<com.google.common.base.Predicate<T>> predicates) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
boolean |
hasNext() |
|
T |
next() |
|
void |
remove() |
forEachRemainingpublic PredicateFilterDecoratingClosableIterator(htsjdk.samtools.util.CloseableIterator<T> underlyingIterator, Collection<com.google.common.base.Predicate<T>> predicates)
public void close()
close in interface AutoCloseableclose in interface Closeableclose in interface htsjdk.samtools.util.CloseableIterator<T>