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.| Constructor and Description |
|---|
SuffixedIterable(Iterable<? extends Payload> iterable,
Payload... suffixes)
Creates a new
SuffixedIterable. |
| 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.iterable - The Iterable to iterate over.suffixes - The suffixes to be yielded.IllegalArgumentException - If the given Iterable is null.public SuffixedIterator<Payload> iterator()
Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.