Payload - The payload type.public final class NullFreeIterator<Payload> extends Object implements Iterator<Payload>
NullFreeIterator is an Iterator that can be wrapped around
a given Iterator and filters out null values.
Calling next() will never return null and
calling hasNext() will never return true,
unless a value that is not null is available.
| Constructor and Description |
|---|
NullFreeIterator(Iterator<Payload> iterator)
Creates a new
NullFreeIterator from the given Iterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic NullFreeIterator(Iterator<Payload> iterator)
NullFreeIterator from the given Iterator.iterator - The Iterator, around which the new
NullFreeIterator will be wrapped.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.