AutoCloseable
, Closeable
, Iterator<T>
CloseableTribbleIterator<T>
, SAMRecordIterator
AbstractLocusIterator
, AsyncBufferedIterator
, BAMFileReader.BAMQueryFilteringIterator
, CRAMIterator
, DelegatingIterator
, DownsamplingIterator
, DuplicateSetIterator
, EdgeReadIterator
, FilteringIterator
, FilteringIterator
, FilteringSamIterator
, FilteringVariantContextIterator
, MergingIterator
, MergingSamRecordIterator
, PeekableIterator
, SamLocusIterator
, SamPairUtil.SetMateInfoIterator
, SamReader.AssertingIterator
, SRAAlignmentIterator
, SRAIterator
public 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, remove
void close()
close
in interface AutoCloseable
close
in interface Closeable