public class ConcatenatingIntIterator extends java.lang.Object implements IntIterator
| Constructor and Description |
|---|
ConcatenatingIntIterator(IntIterator first,
java.util.function.Supplier<IntIterator> second)
Create an iterator that concatenates the results of two supplied iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Test whether there are any more integers in the sequence; and change the state of
the iterator so a call on
IntIterator.next() delivers the next integer. |
int |
next()
Get the next item in the sequence.
|
public ConcatenatingIntIterator(IntIterator first, java.util.function.Supplier<IntIterator> second)
first - the first iteratorsecond - a function that can be called to supply the second iteratorpublic boolean hasNext()
IntIteratorIntIterator.next() delivers the next integer.
The effect of calling #hasNext() a second time without an intervening
call on #next() is undefined.
hasNext in interface IntIteratorpublic int next()
next in interface IntIteratorCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.