Payload - The payload type.public final class ArrayIterator<Payload> extends Object implements Iterator<Payload>
ArrayIterator is a Iterator that iterates over a given
payload array.
Calling remove() may set the array to the given
replacement value 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. |
ArrayIterator(Payload[] values,
Payload replacement)
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.public ArrayIterator(Payload[] values, Payload replacement)
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.replacement - The value to replace removed values with.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.