Payload - The payload type.public final class IndexedIterable<Payload> extends Object implements Iterable<net.markenwerk.commons.datastructures.Entry<Integer,Payload>>
IndexedIterable is an Iterable that can be wrapped around
a given Iterable and generates Iterators that yield
every value yielded by an given Iterator generated by the given
Iterable as an Entry whose key is the index of the yielded
element.| Constructor and Description |
|---|
IndexedIterable(Iterable<? extends Payload> iterable)
Creates a new
IndexedIterable. |
| Modifier and Type | Method and Description |
|---|---|
net.markenwerk.commons.iterators.IndexedIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic IndexedIterable(Iterable<? extends Payload> iterable) throws IllegalArgumentException
IndexedIterable.iterable - The Iterable to iterate over.IllegalArgumentException - If the given Iterable is null.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.