Payload - The payload type.public final class LookAheadIterable<Payload> extends Object implements ProtectedIterable<LookAhead<Payload>>
LookAheadIterable is an 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.
Calling iterator() creates an instance of
LookAheadIterator.
| Constructor and Description |
|---|
LookAheadIterable(Iterable<? extends Payload> iterable)
Creates a new
LookAheadIterable from the given Iterable. |
| Modifier and Type | Method and Description |
|---|---|
LookAheadIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LookAheadIterable(Iterable<? extends Payload> iterable) throws IllegalArgumentException
LookAheadIterable from the given Iterable.iterable - The Iterable, around which the new
LookAheadIterable will be wrapped.IllegalArgumentException - If the given Iterable is null.public LookAheadIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.