protected static class CircularArrayBuffer.ListIteratorImpl<E>
extends java.lang.Object
implements java.util.ListIterator<E>
| Modifier and Type | Field and Description |
|---|---|
protected CircularBuffer<E> |
buff |
protected int |
size |
protected int |
startIndex |
| Modifier | Constructor and Description |
|---|---|
protected |
ListIteratorImpl(CircularBuffer<E> buff,
int startIndex) |
| 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) |
protected final CircularBuffer<E> buff
protected final int size
protected final int startIndex
protected ListIteratorImpl(CircularBuffer<E> buff, int startIndex)
public boolean hasNext()
public final E next()
public final void remove()
public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<E>public int nextIndex()
nextIndex in interface java.util.ListIterator<E>public int previousIndex()
previousIndex in interface java.util.ListIterator<E>public void set(E e) throws java.lang.IndexOutOfBoundsException
set in interface java.util.ListIterator<E>java.lang.IndexOutOfBoundsException