public abstract static class FloatBigListIterators.AbstractIndexBasedBigListIterator extends FloatBigListIterators.AbstractIndexBasedBigIterator implements it.unimi.dsi.fastutil.floats.FloatBigListIterator
As the abstract methods in this class are used in inner loops, it is generally a
good idea to override the class as final as to encourage the JVM to inline
them (or alternatively, override the abstract methods as final).
lastReturned, minPos, pos| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIndexBasedBigListIterator(long minPos,
long initialPos) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(float k) |
protected abstract void |
add(long location,
float k)
Add the given item at the given index.
|
long |
back(long n) |
boolean |
hasPrevious() |
long |
nextIndex() |
float |
previousFloat() |
long |
previousIndex() |
void |
set(float k) |
protected abstract void |
set(long location,
float k)
Sets the given item at the given index.
|
forEachRemaining, get, getMaxPos, hasNext, nextFloat, remove, remove, skip, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, set, skip, skipback, previousprotected AbstractIndexBasedBigListIterator(long minPos,
long initialPos)
protected abstract void add(long location,
float k)
This method should also do what is needed to track the change to the FloatBigListIterators.AbstractIndexBasedBigIterator.getMaxPos().
Usually this is accomplished by having this method call the parent Collection's appropriate add
method, and having FloatBigListIterators.AbstractIndexBasedBigIterator.getMaxPos() track the parent collection's size.
Do not modify FloatBigListIterators.AbstractIndexBasedBigIterator.pos in this method; the default #add() method takes care of this.
See FloatBigListIterators.AbstractIndexBasedBigIterator.pos and #get(int) for discussion on what the location means.
protected abstract void set(long location,
float k)
See FloatBigListIterators.AbstractIndexBasedBigIterator.pos and #get(int) for discussion on what the location means.
public boolean hasPrevious()
hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<java.lang.Float>public float previousFloat()
previousFloat in interface it.unimi.dsi.fastutil.floats.FloatBidirectionalIteratorpublic long nextIndex()
nextIndex in interface it.unimi.dsi.fastutil.BigListIterator<java.lang.Float>public long previousIndex()
previousIndex in interface it.unimi.dsi.fastutil.BigListIterator<java.lang.Float>public void add(float k)
add in interface it.unimi.dsi.fastutil.floats.FloatBigListIteratorpublic void set(float k)
set in interface it.unimi.dsi.fastutil.floats.FloatBigListIteratorpublic long back(long n)
back in interface it.unimi.dsi.fastutil.floats.FloatBigListIterator