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