public static class LongIterators.EmptyIterator extends java.lang.Object implements LongListIterator, java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific iterator.
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyIterator() |
| Modifier and Type | Method and Description |
|---|---|
int |
back(int n)
Moves back for the given number of elements.
|
java.lang.Object |
clone() |
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.
|
int |
skip(int n) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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 int skip(int n)
LongBidirectionalIteratorskip in interface LongBidirectionalIteratorskip in interface it.unimi.dsi.fastutil.longs.LongIteratorskip in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Long>skip in interface it.unimi.dsi.fastutil.objects.ObjectIterator<java.lang.Long>public int back(int n)
LongBidirectionalIteratorThe effect of this call is exactly the same as that of
calling LongBidirectionalIterator.previous() for n times (possibly stopping
if BidirectionalIterator.hasPrevious() becomes false).
back in interface LongBidirectionalIteratorback in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Long>n - the number of elements to skip back.LongBidirectionalIterator.previous()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.OfLongpublic java.lang.Object clone()
clone in class java.lang.Object