public interface DoubleBidirectionalIterator extends DoubleIterator, ObjectBidirectionalIterator<java.lang.Double>
ObjectBidirectionalIterator to reduce (un)boxing| Modifier and Type | Method and Description |
|---|---|
default int |
back(int amount)
Reverses the Given amount of elements if possible.
|
boolean |
hasPrevious()
Returns true if the Iterator has a Previous element
|
default java.lang.Double |
previous()
Deprecated.
Please use the corresponding type-specific function instead.
|
double |
previousDouble()
Returns the Previous element of the iterator.
|
default int |
skip(int amount)
Skips the Given amount of elements if possible.
|
forEachRemaining, forEachRemaining, forEachRemaining, next, nextDoubleforEachRemainingboolean hasPrevious()
hasPrevious in interface ObjectBidirectionalIterator<java.lang.Double>double previousDouble()
java.util.NoSuchElementException - if the iteration has no more elements@Deprecated default java.lang.Double previous()
This default implementation delegates to the corresponding type-specific function.
previous in interface ObjectBidirectionalIterator<java.lang.Double>default int skip(int amount)
skip in interface DoubleIteratorskip in interface ObjectIterator<java.lang.Double>amount - the amount of elements that should be skippeddefault int back(int amount)
back in interface ObjectBidirectionalIterator<java.lang.Double>amount - the amount of elements that should be reversed