public static class FloatIterators.UnmodifiableIterator extends java.lang.Object implements FloatIterator
Constructor and Description |
---|
UnmodifiableIterator(FloatIterator i) |
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Float> action)
Deprecated.
|
void |
forEachRemaining(FloatConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
boolean |
hasNext() |
float |
nextFloat()
Returns the next element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, next, skip
public UnmodifiableIterator(FloatIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Float>
public float nextFloat()
FloatIterator
nextFloat
in interface FloatIterator
Iterator.next()
public void forEachRemaining(FloatConsumer action)
FloatIterator
forEachRemaining
in interface FloatIterator
forEachRemaining
in interface java.util.PrimitiveIterator<java.lang.Float,FloatConsumer>
action
- the action to be performed for each element.Iterator.forEachRemaining(java.util.function.Consumer)
@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Float> action)
FloatIterator
forEachRemaining
in interface FloatIterator
forEachRemaining
in interface java.util.Iterator<java.lang.Float>