public static class LongIterators.UnmodifiableListIterator extends java.lang.Object implements LongListIterator
Constructor and Description |
---|
UnmodifiableListIterator(LongListIterator i) |
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Long> action)
Deprecated.
|
void |
forEachRemaining(java.util.function.LongConsumer action) |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
int |
nextIndex() |
long |
nextLong()
Returns the next element as a primitive type.
|
int |
previousIndex() |
long |
previousLong()
Returns the previous element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, next, previous, remove, set, set
back, skip
forEachRemaining
public UnmodifiableListIterator(LongListIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Long>
hasNext
in interface java.util.ListIterator<java.lang.Long>
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface BidirectionalIterator<java.lang.Long>
hasPrevious
in interface java.util.ListIterator<java.lang.Long>
ListIterator.hasPrevious()
public long nextLong()
LongIterator
nextLong
in interface LongIterator
nextLong
in interface java.util.PrimitiveIterator.OfLong
Iterator.next()
public long previousLong()
LongBidirectionalIterator
previousLong
in interface LongBidirectionalIterator
ListIterator.previous()
public int nextIndex()
nextIndex
in interface java.util.ListIterator<java.lang.Long>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<java.lang.Long>
public void forEachRemaining(java.util.function.LongConsumer action)
forEachRemaining
in interface java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfLong
@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Long> action)
LongIterator
forEachRemaining
in interface LongIterator
forEachRemaining
in interface java.util.Iterator<java.lang.Long>
forEachRemaining
in interface java.util.PrimitiveIterator.OfLong