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
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface htsjdk.samtools.util.CloseableIterator
stream, toList
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DelegatingIterator
-
-
Method Details
-
close
public void close()Description copied from interface:CloseableIterator
Should be implemented to close/release any underlying resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceCloseableIterator<T>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-