public interface ShortBidirectionalIterator extends ShortIterator, ObjectBidirectionalIterator<java.lang.Short>
BidirectionalIterator
Modifier and Type | Method and Description |
---|---|
int |
back(int n)
Moves back for the given number of elements.
|
short |
previousShort()
Returns the previous element as a primitive type.
|
nextShort, skip
skip
hasPrevious, previous
short previousShort()
ListIterator.previous()
int back(int n)
The effect of this call is exactly the same as that of
calling BidirectionalIterator.previous()
for n
times (possibly stopping
if BidirectionalIterator.hasPrevious()
becomes false).
back
in interface ObjectBidirectionalIterator<java.lang.Short>
n
- the number of elements to skip back.Iterator.next()