Payload - The payload type.public final class ArrayIterable<Payload> extends Object implements Iterable<Payload>
ArrayIterable is a Iterable that generates
Iterators that iterate over a given payload array.
Calling iterator() creates an instance of
ArrayIterator.
| Constructor and Description |
|---|
ArrayIterable(Payload[] array)
Creates a new
ArrayIterable for the given payload array. |
ArrayIterable(Payload[] array,
Payload replacement)
Creates a new
ArrayIterable for the given payload array. |
| Modifier and Type | Method and Description |
|---|---|
ArrayIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ArrayIterable(Payload[] array) throws IllegalArgumentException
ArrayIterable for the given payload array.array - The payload array to iterate over.IllegalArgumentException - If the given payload array is null.public ArrayIterable(Payload[] array, Payload replacement) throws IllegalArgumentException
ArrayIterable for the given payload array.array - The payload array to iterate over.replacement - The value to replace removed array with.IllegalArgumentException - If the given payload array is null.public ArrayIterator<Payload> iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.