Payload - The payload type.public final class ArrayIterator<Payload> extends Object implements ProtectedIterator<Payload>
ArrayIterator is a ProtectedIterator that iterates over a
given payload array.| Constructor and Description |
|---|
ArrayIterator(Payload[] array)
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[] array) throws IllegalArgumentException
ArrayIterator that iterates over the given payload
array.array - The payload array to iterate over.IllegalArgumentException - If the given payload array is null.public Payload next() throws NoSuchElementException
next in interface Iterator<Payload>NoSuchElementExceptionpublic void remove()
throws UnsupportedOperationException
remove in interface Iterator<Payload>UnsupportedOperationExceptionCopyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.