org.siebengeisslein.collections
Class AbstractPersistentList.ArrayListIterator

java.lang.Object
  extended by org.siebengeisslein.collections.AbstractPersistentList.ArrayIterator
      extended by org.siebengeisslein.collections.AbstractPersistentList.ArrayListIterator
All Implemented Interfaces:
java.util.Iterator<EntryType>, java.util.ListIterator<EntryType>
Enclosing class:
AbstractPersistentList<EntryType>

protected class AbstractPersistentList.ArrayListIterator
extends AbstractPersistentList.ArrayIterator
implements java.util.ListIterator<EntryType>


Constructor Summary
AbstractPersistentList.ArrayListIterator(int version)
           
AbstractPersistentList.ArrayListIterator(int position, int version)
           
 
Method Summary
 void add(EntryType et)
           
 boolean hasPrevious()
           
 EntryType next()
           
 int nextIndex()
           
 EntryType previous()
           
 int previousIndex()
           
 void remove()
           
 void set(EntryType et)
           
 
Methods inherited from class org.siebengeisslein.collections.AbstractPersistentList.ArrayIterator
checkVersion, getPosition, hasNext, incVersion, setPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
hasNext
 

Constructor Detail

AbstractPersistentList.ArrayListIterator

public AbstractPersistentList.ArrayListIterator(int version)

AbstractPersistentList.ArrayListIterator

public AbstractPersistentList.ArrayListIterator(int position,
                                                int version)
Method Detail

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator<EntryType>

previous

public EntryType previous()
Specified by:
previous in interface java.util.ListIterator<EntryType>

next

public EntryType next()
Specified by:
next in interface java.util.Iterator<EntryType>
Specified by:
next in interface java.util.ListIterator<EntryType>
Overrides:
next in class AbstractPersistentList.ArrayIterator

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator<EntryType>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator<EntryType>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<EntryType>
Specified by:
remove in interface java.util.ListIterator<EntryType>
Overrides:
remove in class AbstractPersistentList.ArrayIterator

add

public void add(EntryType et)
Specified by:
add in interface java.util.ListIterator<EntryType>

set

public void set(EntryType et)
Specified by:
set in interface java.util.ListIterator<EntryType>