Payload - The payload type.public final 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>> iterators)
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 Iteratorsof link Iterator Iterators}. |
CombinedIterator(Iterator<? extends Payload>... iterators)
Creates a new
CombinedIterator from the given sequence
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) throws IllegalArgumentException
CombinedIterator from the given sequence
Iterators.iterators - The Iterators to combine into a single
Iterator.IllegalArgumentException - If the given sequence of Iterators is
null.public CombinedIterator(Iterable<? extends Iterator<? extends Payload>> iterators) throws IllegalArgumentException
CombinedIterator from the given Iterable of
link Iterator Iterators}.iterators - The Iterators to combine into a single
Iterator.IllegalArgumentException - If the given Iterable of Iterators
is null.public CombinedIterator(Iterator<? extends Iterator<? extends Payload>> iterators) throws IllegalArgumentException
CombinedIterator from the given Iteratorsof link Iterator Iterators}.iterators - The Iterators to combine into a single
Iterator.IllegalArgumentException - If the given Iterator of Iterators
is null.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.