public static class LongIterators.UnmodifiableListIterator extends AbstractLongListIterator
| Constructor and Description |
|---|
LongIterators.UnmodifiableListIterator(LongListIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
Long |
next()
Delegates to the corresponding type-specific method.
|
int |
nextIndex() |
long |
nextLong()
Delegates to the corresponding generic method.
|
Long |
previous()
Delegates to the corresponding type-specific method.
|
int |
previousIndex() |
long |
previousLong()
Delegates to the corresponding generic method.
|
add, add, set, setbackremove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremovebackskipskippublic LongIterators.UnmodifiableListIterator(LongListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public long nextLong()
AbstractLongIteratornextLong in interface LongIteratornextLong in class AbstractLongIteratorIterator.next()public long previousLong()
AbstractLongBidirectionalIteratorpreviousLong in interface LongBidirectionalIteratorpreviousLong in class AbstractLongBidirectionalIteratorListIterator.previous()public int nextIndex()
public int previousIndex()
public Long next()
AbstractLongIteratornext in interface Iterator<Long>next in interface ListIterator<Long>next in class AbstractLongIteratorpublic Long previous()
AbstractLongBidirectionalIteratorprevious in interface BidirectionalIterator<Long>previous in interface ListIterator<Long>previous in class AbstractLongBidirectionalIteratorListIterator.previous()