Payload - The payload type.public final class ArrayIterator<Payload> extends Object implements Iterator<Payload>
ArrayIterator is a Iterator that iterates over a given
array of payload values.
Calling remove() sets the array to null at
the index that corresponds to the last value returned by
next().
| Constructor and Description |
|---|
ArrayIterator(Payload[] values)
Creates a new
ArrayIterator that iterates over the given payload
array. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ArrayIterator(Payload[] values)
ArrayIterator that iterates over the given payload
array.
If the given payload array is null, the new
ArrayIterator will behave, as if an empty payload array has been
given.
values - The payload array to iterate over.Copyright © 2015 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.