public static class LongIterators.UnmodifiableListIterator extends java.lang.Object implements LongListIterator
| Modifier and Type | Field and Description |
|---|---|
protected LongListIterator |
i |
| 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() |
int |
nextIndex() |
long |
nextLong() |
int |
previousIndex() |
long |
previousLong()
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, skipprotected final LongListIterator i
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()
hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<java.lang.Long>hasPrevious in interface java.util.ListIterator<java.lang.Long>public long nextLong()
nextLong in interface it.unimi.dsi.fastutil.longs.LongIteratornextLong in interface java.util.PrimitiveIterator.OfLongpublic long previousLong()
LongBidirectionalIteratorpreviousLong in interface LongBidirectionalIteratorListIterator.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)
forEachRemaining in interface it.unimi.dsi.fastutil.longs.LongIteratorforEachRemaining in interface java.util.Iterator<java.lang.Long>forEachRemaining in interface java.util.PrimitiveIterator.OfLong