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 |
next()
Delegates to the corresponding type-specific method.
|
short |
nextShort()
Delegates to the corresponding generic method.
|
Short |
previous()
Delegates to the corresponding type-specific method.
|
short |
previousShort()
Delegates to the corresponding generic method.
|
backremove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipskipforEachRemaining, removepublic UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public short nextShort()
AbstractShortIteratornextShort in interface ShortIteratornextShort in class AbstractShortIteratorIterator.next()public short previousShort()
AbstractShortBidirectionalIteratorpreviousShort in interface ShortBidirectionalIteratorpreviousShort in class AbstractShortBidirectionalIteratorListIterator.previous()public Short next()
AbstractShortIteratornext in interface Iterator<Short>next in class AbstractShortIteratorpublic Short previous()
AbstractShortBidirectionalIteratorprevious in interface BidirectionalIterator<Short>previous in class AbstractShortBidirectionalIteratorListIterator.previous()