private class ChunkList.ChunkListIterator extends Object implements ListIterator<E>
ChunkList.| Modifier and Type | Field and Description |
|---|---|
private Object[] |
chunk |
private int |
cursor
Offset within current chunk of the next element to return.
|
private int |
end
Offset of the first unoccupied location in the current chunk.
|
private int |
lastRet
Offset within the current chunk of the last element returned.
|
private int |
start
Offset in the list of the first element of this chunk.
|
| Constructor and Description |
|---|
ChunkListIterator(Object[] chunk,
int start,
int cursor,
int lastRet,
int end) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E e) |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprivate Object[] chunk
private int start
private int cursor
private int lastRet
next() or previous() has not been called.private int end
ChunkListIterator(Object[] chunk, int start, int cursor, int lastRet, int end)
public boolean hasNext()
public E next()
public boolean hasPrevious()
hasPrevious in interface ListIterator<E>public E previous()
previous in interface ListIterator<E>public int nextIndex()
nextIndex in interface ListIterator<E>public int previousIndex()
previousIndex in interface ListIterator<E>public void remove()
public void set(E e)
set in interface ListIterator<E>public void add(E e)
add in interface ListIterator<E>Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.