public interface FloatIterator extends Iterator<Float>
Iterator
<
Float
>
.
See the comparison of iteration ways in the library.
Iterators of updatable and immutable collections don't support Iterator.remove()
operation. More about mutability profiles.
FloatCollection.iterator()
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(Consumer<? super Float> action)
Deprecated.
Use specialization
forEachRemaining(FloatConsumer) instead |
void |
forEachRemaining(FloatConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
float |
nextFloat()
Returns the next
float element in the iteration. |
float nextFloat()
float
element in the iteration. This is a primitive specialization
of the Iterator.next()
method.float
element in the iterationNoSuchElementException
- if the iteration has no more elements@Deprecated void forEachRemaining(@Nonnull Consumer<? super Float> action)
forEachRemaining(FloatConsumer)
insteadforEachRemaining
in interface Iterator<Float>
action
- the action to be performed for each elementvoid forEachRemaining(@Nonnull FloatConsumer action)
action
- the action to be performed for each element