public static class ShortIterators.UnmodifiableListIterator extends AbstractShortListIterator
| Constructor and Description |
|---|
UnmodifiableListIterator(ShortListIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
int |
nextIndex() |
short |
nextShort()
Returns the next element as a primitive type.
|
int |
previousIndex() |
short |
previousShort()
This implementation delegates to
AbstractShortBidirectionalIterator.previous(). |
add, add, set, setback, previousnext, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnext, previous, removeback, previousskipskipforEachRemainingpublic UnmodifiableListIterator(ShortListIterator 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()public int nextIndex()
public int previousIndex()