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.
|
Modifier and Type | Method and Description |
---|---|
Iterator<E> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
Copyright © 2019 Hitachi Vantara. All rights reserved.