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.| Constructor and Description |
|---|
OptionalIterable(Payload value)
Creates a new
OptionalIterable. |
| Modifier and Type | Method and Description |
|---|---|
net.markenwerk.commons.iterators.OptionalIterator<Payload> |
iterator()
Returns a
ProtectedIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic OptionalIterable(Payload value)
OptionalIterable.value - The object to iterate over.public net.markenwerk.commons.iterators.OptionalIterator<Payload> iterator()
ProtectedIterableProtectedIterator.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.