public class ConcatenatingIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Constructor and Description |
---|
ConcatenatingIterator(java.util.Iterator<? extends E> first,
java.util.function.Supplier<java.util.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.
|
public ConcatenatingIterator(java.util.Iterator<? extends E> first, java.util.function.Supplier<java.util.Iterator<? extends E>> second)
first
- the first iteratorsecond
- a function that can be called to supply the second iteratorCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.