public static class SamReader.AssertingIterator extends java.lang.Object implements SAMRecordIterator
| Constructor and Description |
|---|
AssertingIterator(CloseableIterator<SAMRecord> iterator) |
| Modifier and Type | Method and Description |
|---|---|
SAMRecordIterator |
assertSorted(SAMFileHeader.SortOrder sortOrder)
Establishes that records returned by this iterator are expected to
be in the specified sort order.
|
void |
close()
Should be implemented to close/release any underlying resources.
|
boolean |
hasNext() |
SAMRecord |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstream, toListpublic AssertingIterator(CloseableIterator<SAMRecord> iterator)
public SAMRecordIterator assertSorted(SAMFileHeader.SortOrder sortOrder)
SAMRecordIteratorassertSorted in interface SAMRecordIteratorsortOrder - The order in which records are expected to be returnedpublic void close()
CloseableIteratorclose in interface CloseableIterator<SAMRecord>close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic boolean hasNext()
hasNext in interface java.util.Iterator<SAMRecord>public void remove()
remove in interface java.util.Iterator<SAMRecord>