public static class ShortIterators.EmptyIterator extends java.lang.Object implements ShortListIterator, 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.Short> action)
Deprecated.
|
void |
forEachRemaining(it.unimi.dsi.fastutil.shorts.ShortConsumer action) |
boolean |
hasNext() |
boolean |
hasPrevious() |
int |
nextIndex() |
short |
nextShort() |
int |
previousIndex() |
short |
previousShort()
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.Short>hasNext in interface java.util.ListIterator<java.lang.Short>public boolean hasPrevious()
hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<java.lang.Short>hasPrevious in interface java.util.ListIterator<java.lang.Short>public short nextShort()
nextShort in interface it.unimi.dsi.fastutil.shorts.ShortIteratorpublic short previousShort()
ShortBidirectionalIteratorpreviousShort in interface ShortBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface java.util.ListIterator<java.lang.Short>public int previousIndex()
previousIndex in interface java.util.ListIterator<java.lang.Short>public int skip(int n)
ShortBidirectionalIteratorskip in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Short>skip in interface it.unimi.dsi.fastutil.objects.ObjectIterator<java.lang.Short>skip in interface ShortBidirectionalIteratorskip in interface it.unimi.dsi.fastutil.shorts.ShortIteratorpublic int back(int n)
ShortBidirectionalIteratorThe effect of this call is exactly the same as that of
calling ShortBidirectionalIterator.previous() for n times (possibly stopping
if BidirectionalIterator.hasPrevious() becomes false).
back in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Short>back in interface ShortBidirectionalIteratorn - the number of elements to skip back.ShortBidirectionalIterator.previous()public void forEachRemaining(it.unimi.dsi.fastutil.shorts.ShortConsumer action)
forEachRemaining in interface it.unimi.dsi.fastutil.shorts.ShortIteratorforEachRemaining in interface java.util.PrimitiveIterator<java.lang.Short,it.unimi.dsi.fastutil.shorts.ShortConsumer>@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Short> action)
forEachRemaining in interface it.unimi.dsi.fastutil.shorts.ShortIteratorforEachRemaining in interface java.util.Iterator<java.lang.Short>public java.lang.Object clone()
clone in class java.lang.Object