public static class ShortIterators.UnmodifiableListIterator extends Object implements ShortListIterator
| Modifier and Type | Field and Description |
|---|---|
protected ShortListIterator |
i |
| 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()
Returns the previous element as a primitive type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, next, previous, remove, set, setback, skipforEachRemaining, forEachRemainingprotected final ShortListIterator i
public UnmodifiableListIterator(ShortListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Short>hasPrevious in interface ListIterator<Short>ListIterator.hasPrevious()public short nextShort()
ShortIteratornextShort in interface ShortIteratorIterator.next()public short previousShort()
ShortBidirectionalIteratorpreviousShort in interface ShortBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface ListIterator<Short>public int previousIndex()
previousIndex in interface ListIterator<Short>Copyright © 2020. All rights reserved.