Payload - The payload type.public final class LookAheadIterable<Payload> extends Object implements ProtectedIterable<net.markenwerk.commons.iterators.LookAhead<Payload>>
LookAheadIterable is a ProtectedIterable that can be
wrapped around a given Iterator and generates Iterators that yield a LookAhead container that holds the current
and the next payload value of an Iterator that is generated by the
given Iterable.| Constructor and Description |
|---|
LookAheadIterable(Iterable<? extends Payload> iterable)
Creates a new
LookAheadIterable. |
| Modifier and Type | Method and Description |
|---|---|
net.markenwerk.commons.iterators.LookAheadIterator<Payload> |
iterator()
Returns a
ProtectedIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LookAheadIterable(Iterable<? extends Payload> iterable) throws IllegalArgumentException
LookAheadIterable.iterable - The Iterable to iterate over.IllegalArgumentException - If the given Iterable is null.public net.markenwerk.commons.iterators.LookAheadIterator<Payload> iterator()
ProtectedIterableProtectedIterator.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.