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