public static class ShortIterators.UnmodifiableBidirectionalIterator extends AbstractShortBidirectionalIterator
| 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()
This implementation delegates to
AbstractShortBidirectionalIterator.previous(). |
back, previousnext, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnext, skipskipforEachRemaining, removepublic UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public short nextShort()
AbstractShortIteratorThis implementation delegates to the corresponding generic method.
nextShort in interface ShortIteratornextShort in class AbstractShortIteratorIterator.next()public short previousShort()
AbstractShortBidirectionalIterator
This implementation delegates to AbstractShortBidirectionalIterator.previous().
previousShort in interface ShortBidirectionalIteratorpreviousShort in class AbstractShortBidirectionalIteratorListIterator.previous()