Payload - The payload type.public final class SuffixedIterable<Payload> extends Object implements Iterable<Payload>
SuffixedIterable is an Iterable that can be wrapped around
a given Iterable and generates Iterators that yield
some given suffix values after every object yielded by an Iterator
that is generated by the given Iterable.
Calling iterator() creates an instance of
SuffixedIterator.
| Constructor and Description |
|---|
SuffixedIterable(Iterable<? extends Payload> iterable,
Payload... suffixes)
Creates a new
SuffixedIterable from the given Iterable. |
| Modifier and Type | Method and Description |
|---|---|
SuffixedIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SuffixedIterable(Iterable<? extends Payload> iterable, Payload... suffixes) throws IllegalArgumentException
SuffixedIterable from the given Iterable.iterable - The Iterable, around which the new
SuffixedIterable will be wrapped.suffixes - The suffixes to be yielded.IllegalArgumentException - If the given Iterable is null.public SuffixedIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.