Payload - The payload type.public final class LookAheadIterator<Payload> extends Object implements ProtectedIterator<LookAhead<Payload>>
LookAheadIterator is an Iterator that can be wrapped around
a given Iterator and yields a LookAhead container that holds
the current and the next payload value of the given Iterator.| Constructor and Description |
|---|
LookAheadIterator(Iterator<? extends Payload> iterator)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
LookAhead<Payload> |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic LookAheadIterator(Iterator<? extends Payload> iterator) throws IllegalArgumentException
iterator - The Iterator, around which the new
LookAheadIterator will be wrapped.IllegalArgumentException - If the given Iterator is null.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.