public class IteratorIterable<E> extends Object implements Iterable<E>
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 and Description |
---|
IteratorIterable(Iterator<E> iterator)
Creates an IteratorIterable.
|