Payload - The payload type.public class CombinedIterator<Payload> extends Object implements Iterator<Payload>
CombinedIterator is an Iterator that wraps arround some
given Iterators and combines them into a single
Iterator by iterating over all given Iterators in
the order they were given.| Constructor and Description |
|---|
CombinedIterator(Iterable<? extends Iterator<? extends Payload>> iterable)
Creates a new
CombinedIterator from the given Iterable of
link Iterator Iterators}. |
CombinedIterator(Iterator<? extends Iterator<? extends Payload>> iterators)
Creates a new
CombinedIterator from the given Iterators. |
CombinedIterator(Iterator<? extends Payload>... iterators)
Creates a new
CombinedIterator from the given Iterators. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic CombinedIterator(Iterator<? extends Payload>... iterators)
CombinedIterator from the given Iterators.public CombinedIterator(Iterable<? extends Iterator<? extends Payload>> iterable)
CombinedIterator from the given Iterable of
link Iterator Iterators}.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.