Package htsjdk.samtools.util
Class DelegatingIterator<T>
java.lang.Object
htsjdk.samtools.util.DelegatingIterator<T>
- All Implemented Interfaces:
CloseableIterator<T>,Closeable,AutoCloseable,Iterator<T>
Simple iterator class that delegates all method calls to an underlying iterator. Useful
for in-line subclassing to add behaviour to one or more methods.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface htsjdk.samtools.util.CloseableIterator
stream, toListMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DelegatingIterator
-
-
Method Details
-
close
public void close()Description copied from interface:CloseableIteratorShould be implemented to close/release any underlying resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseableIterator<T>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-