public static class IntIterators.EmptyIterator extends java.lang.Object implements IntListIterator, 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.Integer> action)
Deprecated.
|
void |
forEachRemaining(java.util.function.IntConsumer action) |
boolean |
hasNext() |
boolean |
hasPrevious() |
int |
nextIndex() |
int |
nextInt() |
int |
previousIndex() |
int |
previousInt()
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.Integer>hasNext in interface java.util.ListIterator<java.lang.Integer>public boolean hasPrevious()
hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<java.lang.Integer>hasPrevious in interface java.util.ListIterator<java.lang.Integer>public int nextInt()
nextInt in interface it.unimi.dsi.fastutil.ints.IntIteratornextInt in interface java.util.PrimitiveIterator.OfIntpublic int previousInt()
IntBidirectionalIteratorpreviousInt in interface IntBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface java.util.ListIterator<java.lang.Integer>public int previousIndex()
previousIndex in interface java.util.ListIterator<java.lang.Integer>public int skip(int n)
IntBidirectionalIteratorskip in interface IntBidirectionalIteratorskip in interface it.unimi.dsi.fastutil.ints.IntIteratorskip in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Integer>skip in interface it.unimi.dsi.fastutil.objects.ObjectIterator<java.lang.Integer>public int back(int n)
IntBidirectionalIteratorThe effect of this call is exactly the same as that of
calling IntBidirectionalIterator.previous() for n times (possibly stopping
if BidirectionalIterator.hasPrevious() becomes false).
back in interface IntBidirectionalIteratorback in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Integer>n - the number of elements to skip back.IntBidirectionalIterator.previous()public void forEachRemaining(java.util.function.IntConsumer action)
forEachRemaining in interface java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>forEachRemaining in interface java.util.PrimitiveIterator.OfInt@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Integer> action)
forEachRemaining in interface it.unimi.dsi.fastutil.ints.IntIteratorforEachRemaining in interface java.util.Iterator<java.lang.Integer>forEachRemaining in interface java.util.PrimitiveIterator.OfIntpublic java.lang.Object clone()
clone in class java.lang.Object