Payload - The payload type.public final class OptionalIterable<Payload> extends Object implements ProtectedIterable<Payload>
OptionalIterable is a ProtectedIterable that behaves like
an ObjectIterable for a given payload object, or like an empty
Iterable, if the given payload object is null.
Calling iterator() creates an instance of
OptionalIterator.
| Constructor and Description |
|---|
OptionalIterable(Payload value)
Creates a new
OptionalIterable for the given payload object. |
| Modifier and Type | Method and Description |
|---|---|
OptionalIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic OptionalIterable(Payload value)
OptionalIterable for the given payload object.value - The payload object to iterate over.public OptionalIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.