Class IterableAdapter<T>

java.lang.Object
htsjdk.samtools.util.IterableAdapter<T>
All Implemented Interfaces:
Iterable<T>

public class IterableAdapter<T> extends Object implements Iterable<T>
Provides an adapter to wrap an Iterator with an Iterable, allowing it to be run through a foreach loop. Will only allow iterator() to be called a single time - this is intended to be called inline.
  • Constructor Details

    • IterableAdapter

      public IterableAdapter(Iterator<T> theIterator)
  • Method Details