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
a given infix between every object yielded by an Iterator that is
generated by the given Iterable.
Calling iterator() creates an instance of
InfixedIterator.
| Constructor and Description |
|---|
InfixedIterable(Iterable<? extends Payload> iterable,
Payload infix)
Creates a new
InfixedIterable from the given Iterable. |
| 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 infix) throws IllegalArgumentException
InfixedIterable from the given Iterable.iterable - The Iterable, around which the new
InfixedIterable will be wrapped.infix - The infix to be yielded.IllegalArgumentException - If the given Iterable is null.public InfixedIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.