public interface LongBidirectionalIterator extends LongIterator, ObjectBidirectionalIterator<java.lang.Long>
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.Long |
previous()
Deprecated.
Please use the corresponding type-specific function instead.
|
long |
previousLong()
Returns the Previous element of the iterator.
|
default int |
skip(int amount)
Skips the Given amount of elements if possible.
|
forEachRemaining, forEachRemaining, next, nextLongboolean hasPrevious()
hasPrevious in interface ObjectBidirectionalIterator<java.lang.Long>long previousLong()
java.util.NoSuchElementException - if the iteration has no more elements@Deprecated default java.lang.Long previous()
This default implementation delegates to the corresponding type-specific function.
previous in interface ObjectBidirectionalIterator<java.lang.Long>default int skip(int amount)
skip in interface LongIteratorskip in interface ObjectIterator<java.lang.Long>amount - the amount of elements that should be skippeddefault int back(int amount)
back in interface ObjectBidirectionalIterator<java.lang.Long>amount - the amount of elements that should be reversed