Payload - The payload type.public final class LookAheadIterable<Payload> extends Object implements ProtectedIterable<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 |
|---|---|
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 LookAheadIterator<Payload> iterator()
ProtectedIterableProtectedIterator.iterator in interface Iterable<LookAhead<Payload>>iterator in interface ProtectedIterable<LookAhead<Payload>>ProtectedIterator.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.