public static class ByteIterators.EmptyIterator extends java.lang.Object implements ByteListIterator, 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(it.unimi.dsi.fastutil.bytes.ByteConsumer action) |
void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Byte> action)
Deprecated.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
byte |
nextByte() |
int |
nextIndex() |
byte |
previousByte()
Returns the previous element as a primitive type.
|
int |
previousIndex() |
int |
skip(int n) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Byte>hasNext in interface java.util.ListIterator<java.lang.Byte>public boolean hasPrevious()
hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<java.lang.Byte>hasPrevious in interface java.util.ListIterator<java.lang.Byte>public byte nextByte()
nextByte in interface it.unimi.dsi.fastutil.bytes.ByteIteratorpublic byte previousByte()
ByteBidirectionalIteratorpreviousByte in interface ByteBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface java.util.ListIterator<java.lang.Byte>public int previousIndex()
previousIndex in interface java.util.ListIterator<java.lang.Byte>public int skip(int n)
ByteBidirectionalIteratorskip in interface ByteBidirectionalIteratorskip in interface it.unimi.dsi.fastutil.bytes.ByteIteratorskip in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Byte>skip in interface it.unimi.dsi.fastutil.objects.ObjectIterator<java.lang.Byte>public int back(int n)
ByteBidirectionalIteratorThe effect of this call is exactly the same as that of
calling ByteBidirectionalIterator.previous() for n times (possibly stopping
if BidirectionalIterator.hasPrevious() becomes false).
back in interface ByteBidirectionalIteratorback in interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Byte>n - the number of elements to skip back.ByteBidirectionalIterator.previous()public void forEachRemaining(it.unimi.dsi.fastutil.bytes.ByteConsumer action)
forEachRemaining in interface it.unimi.dsi.fastutil.bytes.ByteIteratorforEachRemaining in interface java.util.PrimitiveIterator<java.lang.Byte,it.unimi.dsi.fastutil.bytes.ByteConsumer>@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Byte> action)
forEachRemaining in interface it.unimi.dsi.fastutil.bytes.ByteIteratorforEachRemaining in interface java.util.Iterator<java.lang.Byte>public java.lang.Object clone()
clone in class java.lang.Object