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