Class DelegatingIterator<T>

java.lang.Object
htsjdk.samtools.util.DelegatingIterator<T>
All Implemented Interfaces:
CloseableIterator<T>, Closeable, AutoCloseable, Iterator<T>

public class DelegatingIterator<T> extends Object implements CloseableIterator<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 Details

    • DelegatingIterator

      public DelegatingIterator(Iterator<T> iterator)
  • Method Details