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[] values)
Creates a new
IntegerArrayIterable for the given int[]. |
IntegerArrayIterable(int[] values,
int replacement)
Creates a new
IntegerArrayIterable for the given int[]. |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Integer> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic IntegerArrayIterable(int[] values)
IntegerArrayIterable for the given int[].values - The int[] to iterate over.public IntegerArrayIterable(int[] values,
int replacement)
IntegerArrayIterable for the given int[].values - The int[] to iterate over.replacement - The value to replace removed values with.Copyright © 2015 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.