Payload - The payload type.public final class CombinedIterable<Payload> extends Object implements Iterable<Payload>
CombinedIterable is a Iterable that wraps arround some
given Iterables and combines them into a single
Iterable by iterating over all given Iterables in
the order they were given.
Calling iterator() creates an instance of
CombinedIterator.
| Constructor and Description |
|---|
CombinedIterable(Iterable<? extends Iterable<? extends Payload>> iterable)
|
CombinedIterable(Iterable<? extends Payload>... iterables)
Creates a new
CombinedIterable from the given sequence of
Iterables. |
| Modifier and Type | Method and Description |
|---|---|
CombinedIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CombinedIterable(Iterable<? extends Payload>... iterables)
CombinedIterable from the given sequence of
Iterables.iterables - The sequence of Iterables to combine into a
single Iterable.IllegalArgumentException - If the given sequence of Iterables is
null.public CombinedIterable(Iterable<? extends Iterable<? extends Payload>> iterable) throws IllegalArgumentException
public CombinedIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.