Package net.sf.saxon.tree.jiter
Class ConcatenatingIterator<E>
- java.lang.Object
-
- net.sf.saxon.tree.jiter.ConcatenatingIterator<E>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
Get the next item in the sequence.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
ConcatenatingIterator
public ConcatenatingIterator(Iterator<? extends E> first, Supplier<Iterator<? extends E>> second)
Create an iterator that concatenates the results of two supplied iterators. The second iterator isn't created until it is actually needed.- Parameters:
first
- the first iteratorsecond
- a function that can be called to supply the second iterator
-
-