public final class LongArrayIterator extends Object implements Iterator<Long>
LongArrayIterator is an Iterator that iterates over a given
long[].
Calling remove() sets the array to 0 at
the index that corresponds to the last value returned by
next().
| Constructor and Description |
|---|
LongArrayIterator(long[] values)
Creates a new LongArrayIterator that iterates over the given
long[]. |
LongArrayIterator(long[] values,
long replacement)
Creates a new LongArrayIterator that iterates over the given
long[]. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Long |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic LongArrayIterator(long[] values)
long[].
If the given long[] is null, the new
LongArrayIterator will behave, as if an empty long[] has
been given.
values - The long[] to iterate over.public LongArrayIterator(long[] values,
long replacement)
long[].
If the given long[] is null, the new
LongArrayIterator will behave, as if an empty long[] has
been given.
values - The long[] to iterate over.replacement - The value to replace removed values with.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.