Payload - The payload type.public final class OptionalIterable<Payload> extends Object implements ProtectedBidirectionalIterable<Payload>
OptionalIterable is a ProtectedBidirectionalIterable that
generates Iterators that iterate over a given
NodeList.| Constructor and Description |
|---|
OptionalIterable(Optional<Payload> optional)
Creates a new
OptionalIterable. |
| Modifier and Type | Method and Description |
|---|---|
OptionalIterator<Payload> |
iterator()
Returns a
ProtectedIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic OptionalIterable(Optional<Payload> optional) throws IllegalArgumentException
OptionalIterable.optional - The Optional to iterate over.IllegalArgumentException - If the given Optional is null.public OptionalIterator<Payload> iterator()
ProtectedBidirectionalIterableProtectedIterator.iterator in interface Iterable<Payload>iterator in interface BidirectionalIterable<Payload>iterator in interface ProtectedBidirectionalIterable<Payload>ProtectedIterator.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.