T - Type of the inner iterators.public class FlatIterator<T> extends GridIteratorAdapter<T>
| Constructor and Description |
|---|
FlatIterator(Iterable<?> iterable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNextX()
This method is the same as
Iterator.hasNext(), but allows for failure
with exception. |
T |
nextX()
This method is the same as
Iterator.next(), but allows for failure
with exception. |
void |
removeX()
This method is the same as
Iterator.remove(), but allows for failure
with exception. |
String |
toString() |
hasNext, iterator, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorforEachRemainingpublic FlatIterator(Iterable<?> iterable)
iterable - Input iterable of iterators.public boolean hasNextX()
Iterator.hasNext(), but allows for failure
with exception. Often iterators are used to iterate through values
that have not or have partially been received from remote nodes,
and need to account for possible network failures, rather than
just returning false out of Iterator.hasNext() method.True if iterator contains more elements.Iterator.hasNext()public T nextX()
Iterator.next(), but allows for failure
with exception. Often iterators are used to iterate through values
that have not or have partially been received from remote nodes,
and need to account for possible network failures, rather than
throwing NoSuchElementException runtime exception.sTrue if iterator contains more elements.Iterator.next()public void removeX()
Iterator.remove(), but allows for failure
with exception.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018