AutoCloseable, Closeable, Iterator<T>CloseableTribbleIterator<T>, SAMRecordIteratorAbstractLocusIterator, AsyncBufferedIterator, BAMFileReader.BAMQueryFilteringIterator, CRAMIterator, DelegatingIterator, DownsamplingIterator, DuplicateSetIterator, EdgeReadIterator, FilteringIterator, FilteringIterator, FilteringSamIterator, FilteringVariantContextIterator, MergingIterator, MergingSamRecordIterator, PeekableIterator, SamLocusIterator, SamPairUtil.SetMateInfoIterator, SamReader.AssertingIterator, SRAAlignmentIterator, SRAIteratorpublic interface CloseableIterator<T> extends Iterator<T>, Closeable
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Should be implemented to close/release any underlying resources.
|
default Stream<T> |
stream() |
Returns a Stream that will consume from the underlying iterator.
|
default List<T> |
toList() |
Consumes the contents of the iterator and returns it as a List.
|
forEachRemaining, hasNext, next, removevoid close()
close in interface AutoCloseableclose in interface Closeable