public final class LinkedListIteratorRVM<T> extends Object implements ListIterator<T>
| Modifier and Type | Field and Description | 
|---|---|
(package private) boolean | 
canRemove  | 
private LinkedListRVM.Element<T> | 
cursor
Pointer to the current (most recently returned) element. 
 | 
(package private) LinkedListRVM<T> | 
l
The list we are iterating over 
 | 
| Constructor and Description | 
|---|
LinkedListIteratorRVM(LinkedListRVM<T> l)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(T arg0)  | 
boolean | 
hasNext()  | 
boolean | 
hasPrevious()  | 
T | 
next()  | 
int | 
nextIndex()  | 
T | 
previous()  | 
int | 
previousIndex()  | 
void | 
remove()  | 
void | 
set(Object arg0)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingboolean canRemove
final LinkedListRVM<T> l
private LinkedListRVM.Element<T> cursor
LinkedListIteratorRVM(LinkedListRVM<T> l)
l - The list to iterate over.public void add(T arg0)
add in interface ListIterator<T>public boolean hasNext()
public boolean hasPrevious()
hasPrevious in interface ListIterator<T>public void remove()
public int nextIndex()
nextIndex in interface ListIterator<T>public T previous()
previous in interface ListIterator<T>public int previousIndex()
previousIndex in interface ListIterator<T>public void set(Object arg0)
set in interface ListIterator<T>