Package mondrian.util

Class IteratorIterable<E>

java.lang.Object
mondrian.util.IteratorIterable<E>
All Implemented Interfaces:
Iterable<E>

public class IteratorIterable<E> extends Object implements Iterable<E>
Iterable over an iterator.

It can be restarted. As you iterate, it stores elements in a backing array. If you call iterator() again, it will first replay elements from that array.

  • Constructor Details

    • IteratorIterable

      public IteratorIterable(Iterator<E> iterator)
      Creates an IteratorIterable.
  • Method Details