public abstract static class CharBigListIterators.AbstractIndexBasedBigListIterator extends CharBigListIterators.AbstractIndexBasedBigIterator implements it.unimi.dsi.fastutil.chars.CharBigListIterator
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(char k) |
protected abstract void |
add(long location,
char k)
Add the given item at the given index.
|
long |
back(long n) |
boolean |
hasPrevious() |
long |
nextIndex() |
char |
previousChar() |
long |
previousIndex() |
void |
set(char k) |
protected abstract void |
set(long location,
char k)
Sets the given item at the given index.
|
forEachRemaining, get, getMaxPos, hasNext, nextChar, 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,
char k)
This method should also do what is needed to track the change to the CharBigListIterators.AbstractIndexBasedBigIterator.getMaxPos().
Usually this is accomplished by having this method call the parent Collection's appropriate add
method, and having CharBigListIterators.AbstractIndexBasedBigIterator.getMaxPos() track the parent collection's size.
Do not modify CharBigListIterators.AbstractIndexBasedBigIterator.pos in this method; the default #add() method takes care of this.
See CharBigListIterators.AbstractIndexBasedBigIterator.pos and #get(int) for discussion on what the location means.
protected abstract void set(long location,
char k)
See CharBigListIterators.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.Character>public char previousChar()
previousChar in interface it.unimi.dsi.fastutil.chars.CharBidirectionalIteratorpublic long nextIndex()
nextIndex in interface it.unimi.dsi.fastutil.BigListIterator<java.lang.Character>public long previousIndex()
previousIndex in interface it.unimi.dsi.fastutil.BigListIterator<java.lang.Character>public void add(char k)
add in interface it.unimi.dsi.fastutil.chars.CharBigListIteratorpublic void set(char k)
set in interface it.unimi.dsi.fastutil.chars.CharBigListIteratorpublic long back(long n)
back in interface it.unimi.dsi.fastutil.chars.CharBigListIterator