public static class ShortIterators.UnmodifiableBidirectionalIterator extends Object implements ShortBidirectionalIterator
| Constructor and Description |
|---|
UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
short |
nextShort()
Returns the next element as a primitive type.
|
short |
previousShort()
Returns the previous element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, skipforEachRemaining, forEachRemaining, nextpublic UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i)
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Short>ListIterator.hasPrevious()public short nextShort()
ShortIteratornextShort in interface ShortIteratorIterator.next()public short previousShort()
ShortBidirectionalIteratorpreviousShort in interface ShortBidirectionalIteratorListIterator.previous()