Package htsjdk.samtools.util
Class IterableAdapter<T>
java.lang.Object
htsjdk.samtools.util.IterableAdapter<T>
- All Implemented Interfaces:
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.