Payload - The payload type.public final class NullSaveIterable<Payload> extends Object implements Iterable<Payload>
NullSaveIterable is a Iterable that can be wrapped around
a given Iterable and generates Iterators that always
behaves correctly, even if the given Iterable is null (by
generating an EmptyIterator).| Constructor and Description |
|---|
NullSaveIterable(Iterable<Payload> iterable)
Creates a new
NullSaveIterable from the given Iterable. |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic NullSaveIterable(Iterable<Payload> iterable)
NullSaveIterable from the given Iterable.iterable - The Iterable, around which the new
NullSaveIterable will be wrapped.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.