Payload - The payload type.public final class NullFreeIterable<Payload> extends Object implements Iterable<Payload>
NullFreeIterable is an 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<? extends Payload> iterable)
Creates a new
NullFreeIterable. |
| Modifier and Type | Method and Description |
|---|---|
NullFreeIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic NullFreeIterable(Iterable<? extends Payload> iterable) throws IllegalArgumentException
NullFreeIterable.iterable - The Iterable to iterate over.IllegalArgumentException - If the given Iterable is null.public NullFreeIterator<Payload> iterator()
Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.