Payload - The payload type.public final class InfixedIterable<Payload> extends Object implements Iterable<Payload>
InfixedIterable is an Iterable that can be wrapped around
a given Iterable and generates Iterators that yield
some given infix values between every value yielded by an Iterator
that is generated by the given Iterable.| Constructor and Description |
|---|
InfixedIterable(Iterable<? extends Payload> iterable,
Payload... infixes)
Creates a new
InfixedIterable. |
| Modifier and Type | Method and Description |
|---|---|
InfixedIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic InfixedIterable(Iterable<? extends Payload> iterable, Payload... infixes) throws IllegalArgumentException
InfixedIterable.iterable - The Iterable to iterate over.infixes - The infixes to be yielded.IllegalArgumentException - If the given Iterable is null.public InfixedIterator<Payload> iterator()
Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.