public static class FloatIterators.UnmodifiableListIterator extends java.lang.Object implements FloatListIterator
Constructor and Description |
---|
UnmodifiableListIterator(FloatListIterator 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() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
float |
nextFloat()
Returns the next element as a primitive type.
|
int |
nextIndex() |
float |
previousFloat()
Returns the previous element as a primitive type.
|
int |
previousIndex() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, next, previous, remove, set, set
back, skip
forEachRemaining
public UnmodifiableListIterator(FloatListIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Float>
hasNext
in interface java.util.ListIterator<java.lang.Float>
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface BidirectionalIterator<java.lang.Float>
hasPrevious
in interface java.util.ListIterator<java.lang.Float>
ListIterator.hasPrevious()
public float nextFloat()
FloatIterator
nextFloat
in interface FloatIterator
Iterator.next()
public float previousFloat()
FloatBidirectionalIterator
previousFloat
in interface FloatBidirectionalIterator
ListIterator.previous()
public int nextIndex()
nextIndex
in interface java.util.ListIterator<java.lang.Float>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<java.lang.Float>
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>