E - the type parameterFileIt<E>, SampleFileIt<E>, java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<E>public final class IntervalVcfIt<E extends MarkerContainer> extends java.lang.Object implements SampleFileIt<E>
Class IntervalVcfIterator is a sample file iterator whose
next() method returns a marker container.
| Constructor | Description |
|---|---|
IntervalVcfIt(SampleFileIt<E> it,
ChromInterval interval) |
Constructs a new
IntervalVcfIterator instance. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Terminates the iteration and releases any system resources that
are held by this object.
|
java.io.File |
file() |
Returns the file from which the data are read, or
null if the data are read from standard input or are
computed data. |
boolean |
hasNext() |
Returns
true if the iteration has more elements. |
E |
next() |
Returns the next element in the iteration.
|
void |
remove() |
The
remove method is not supported by this iterator. |
Samples |
samples() |
Returns the list of samples.
|
public IntervalVcfIt(SampleFileIt<E> it, ChromInterval interval)
IntervalVcfIterator instance.it - an iterator whose next() method returns a marker
containerinterval - a chromosome intervaljava.lang.NullPointerException - if it == null || interval == nullpublic java.io.File file()
FileItnull if the data are read from standard input or are
computed data.file in interface FileIt<E extends MarkerContainer>null if the data are read from standard input or are
computed datapublic Samples samples()
SampleFileItsamples in interface SampleFileIt<E extends MarkerContainer>public boolean hasNext()
true if the iteration has more elements.hasNext in interface java.util.Iterator<E extends MarkerContainer>true if the iteration has more elements.public E next()
next in interface java.util.Iterator<E extends MarkerContainer>java.util.NoSuchElementException - if the iteration has no more elements.public void remove()
remove method is not supported by this iterator.remove in interface java.util.Iterator<E extends MarkerContainer>java.lang.UnsupportedOperationException - if this method is invokedpublic void close()
FileItclose(), further
invocations of close() have no effect.close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in interface FileIt<E extends MarkerContainer>