open class CompositeIterator<E : Any> : MutableIterator<E>
Composite iterator that combines multiple other iterators, as registered via #add(Iterator).
This implementation maintains a linked set of iterators which are invoked in sequence until all iterators are exhausted.
Author
Erwin Vervaet
Author
Juergen Hoeller
Since
3.0
CompositeIterator()
Composite iterator that combines multiple other iterators, as registered via This implementation maintains a linked set of iterators which are invoked in sequence until all iterators are exhausted. |
open fun add(iterator: MutableIterator<E>): Unit
Add given iterator to this composite. |
|
open fun hasNext(): Boolean |
|
open fun next(): E |
|
open fun remove(): Unit |