Payload - The payload type.public final class ArrayIterator<Payload> extends AbstractIndexedIterator<Payload>
ArrayIterator is an AbstractIndexedIterator that iterates
over a given payload array.| Constructor and Description |
|---|
ArrayIterator(Payload... array)
Creates a new
ArrayIterator. |
| Modifier and Type | Method and Description |
|---|---|
Payload |
get(int index)
Returns the payload value at the given index.
|
hasNext, hasPrevious, next, previousremoveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveforEachRemainingpublic ArrayIterator(Payload... array) throws IllegalArgumentException
ArrayIterator.array - The array of payload values to iterate over.IllegalArgumentException - If the given array of payload values is null.public Payload get(int index)
AbstractIndexedIteratorget in class AbstractIndexedIterator<Payload>index - The index to be used, which is guaranteed to be non-negative
and smaller then the maximum index.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.