Constructor and Description |
---|
IteratorIterable(Iterator<Type> iterator)
Creates a new
IteratorIterable for the given Iterator |
Modifier and Type | Method and Description |
---|---|
static <Type> IteratorIterable<Type> |
create(Iterator<Type> iterator)
For a given
Iterator this method returns an Iterable whose
Iterable.iterator() will return exactly that iterator. |
Iterator<Type> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public IteratorIterable(Iterator<Type> iterator)
IteratorIterable
for the given Iterator
iterator
- the iterator to iterate. Must not be null.public static <Type> IteratorIterable<Type> create(Iterator<Type> iterator)
Iterator
this method returns an Iterable
whose
Iterable.iterator()
will return exactly that iterator.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.