| Modifier and Type | Field and Description |
|---|---|
(package private) Iterator<? extends E> |
active |
(package private) Iterator<? extends E> |
first |
(package private) Supplier<Iterator<? extends E>> |
second |
| Constructor and Description |
|---|
ConcatenatingIterator(Iterator<? extends E> first,
Supplier<Iterator<? extends E>> second)
Create an iterator that concatenates the results of two supplied iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next()
Get the next item in the sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic ConcatenatingIterator(Iterator<? extends E> first, Supplier<Iterator<? extends E>> second)
first - the first iteratorsecond - a function that can be called to supply the second iterator