public static class LongIterators.UnmodifiableListIterator extends AbstractLongListIterator
Constructor and Description |
---|
UnmodifiableListIterator(LongListIterator i) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
java.lang.Long |
next()
Delegates to the corresponding type-specific method.
|
int |
nextIndex() |
long |
nextLong()
Delegates to the corresponding generic method.
|
java.lang.Long |
previous()
Delegates to the corresponding type-specific method.
|
int |
previousIndex() |
long |
previousLong()
Delegates to the corresponding generic method.
|
add, add, set, set
back
remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
back
skip
skip
public UnmodifiableListIterator(LongListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public long nextLong()
AbstractLongIterator
nextLong
in interface LongIterator
nextLong
in class AbstractLongIterator
Iterator.next()
public long previousLong()
AbstractLongBidirectionalIterator
previousLong
in interface LongBidirectionalIterator
previousLong
in class AbstractLongBidirectionalIterator
ListIterator.previous()
public int nextIndex()
public int previousIndex()
public java.lang.Long next()
AbstractLongIterator
next
in interface java.util.Iterator<java.lang.Long>
next
in interface java.util.ListIterator<java.lang.Long>
next
in class AbstractLongIterator
public java.lang.Long previous()
AbstractLongBidirectionalIterator
previous
in interface BidirectionalIterator<java.lang.Long>
previous
in interface java.util.ListIterator<java.lang.Long>
previous
in class AbstractLongBidirectionalIterator
ListIterator.previous()