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