Class 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.