Payload - The payload type.public final class NullFreeIterable<Payload> extends Object implements Iterable<Payload>
NullFreeIterable is a Iterable that can be wrapped around
a given Iterable and generates Iterators that
filters out null values.
Calling iterator() creates an instance of
NullFreeIterator.
| Constructor and Description |
|---|
NullFreeIterable(Iterable<Payload> iterable)
Creates a new
NullFreeIterable from the given Iterable. |
| Modifier and Type | Method and Description |
|---|---|
NullFreeIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic NullFreeIterable(Iterable<Payload> iterable) throws IllegalArgumentException
NullFreeIterable from the given Iterable.iterable - The Iterable, around which the new
NullFreeIterable will be wrapped.IllegalArgumentException - If the given Iterable is null.public NullFreeIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.