public static class FloatIterators.UnmodifiableBidirectionalIterator extends java.lang.Object implements FloatBidirectionalIterator
Constructor and Description |
---|
UnmodifiableBidirectionalIterator(FloatBidirectionalIterator 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.
|
float |
previousFloat()
Returns the previous element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
back, previous, skip
forEachRemaining, next
public UnmodifiableBidirectionalIterator(FloatBidirectionalIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Float>
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface BidirectionalIterator<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 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>