Payload - The payload type.public final class OptionalIterator<Payload> extends Object implements ProtectedIterator<Payload>
OptionalIterator is a Iterator that behaves like an
ObjectIterator for a given payload object, or like an empty
Iterator, if the given payload object is null.| Constructor and Description |
|---|
OptionalIterator(Payload value)
Creates a new
OptionalIterator that iterates over the given
payload object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic OptionalIterator(Payload value)
OptionalIterator that iterates over the given
payload object.value - The payload object to iterate over.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.