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.
Calling iterator() creates an instance of
InfixedIterator.
| Constructor and Description |
|---|
InfixedIterable(Iterable<? extends Payload> iterable,
Payload... infixes)
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... infixes) throws IllegalArgumentException
InfixedIterable from the given Iterable.iterable - The Iterable, around which the new
InfixedIterable will be wrapped.infixes - The infixes 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.