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