public class DynamicCollection.DynamicIterator extends Object implements ListIterator<E>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasNextCalled |
protected boolean |
hasPreviousCalled |
protected int |
index |
protected E |
last |
protected E |
next |
protected E |
previous |
| Constructor and Description |
|---|
DynamicIterator() |
DynamicIterator(int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E o) |
protected void |
addedIndex(int index) |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
protected void |
removedIndex(int index) |
void |
set(E o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected int index
protected boolean hasNextCalled
protected E next
protected boolean hasPreviousCalled
protected E previous
protected E last
public DynamicIterator()
public DynamicIterator(int index)
protected void removedIndex(int index)
protected void addedIndex(int index)
public boolean hasNext()
public boolean hasPrevious()
hasPrevious in interface ListIterator<E>public E next()
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 set(E o)
set in interface ListIterator<E>public void add(E o)
add in interface ListIterator<E>Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.