org.siebengeisslein.collections
Class AbstractPersistentList<EntryType>

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.collections.AbstractCollection<EntryType>
          extended by org.siebengeisslein.collections.AbstractPersistentList<EntryType>
All Implemented Interfaces:
java.lang.Iterable<EntryType>, java.util.Collection<EntryType>, java.util.List<EntryType>, Instrumented
Direct Known Subclasses:
AbstractPersistentList.SubList, ArrayList, ReadOnlyList, TreeList

public abstract class AbstractPersistentList<EntryType>
extends AbstractCollection<EntryType>
implements java.util.List<EntryType>


Nested Class Summary
protected  class AbstractPersistentList.ArrayIterator
           
protected  class AbstractPersistentList.ArrayListIterator
           
static class AbstractPersistentList.SubList<T>
           
 
Constructor Summary
protected AbstractPersistentList()
           
 
Method Summary
 boolean add(EntryType o)
           
 boolean addAll(int index, java.util.Collection<? extends EntryType> c)
           
protected  void checkVersion()
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 int indexOf(java.lang.Object o)
           
 java.util.Iterator<EntryType> iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator<EntryType> listIterator()
           
 java.util.ListIterator<EntryType> listIterator(int index)
           
 boolean remove(java.lang.Object o)
           
 java.util.List<EntryType> subList(int fromIndex, int toIndex)
           
 
Methods inherited from class org.siebengeisslein.collections.AbstractCollection
addAll, containsAll, getVersion, incVersion, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, containsAll, get, isEmpty, remove, removeAll, retainAll, set, size, toArray, toArray
 

Constructor Detail

AbstractPersistentList

protected AbstractPersistentList()
Method Detail

add

public boolean add(EntryType o)
Specified by:
add in interface java.util.Collection<EntryType>
Specified by:
add in interface java.util.List<EntryType>

checkVersion

protected void checkVersion()

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<EntryType>
Specified by:
contains in interface java.util.List<EntryType>

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<EntryType>

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List<EntryType>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<EntryType>
Specified by:
remove in interface java.util.List<EntryType>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<EntryType>
Specified by:
clear in interface java.util.List<EntryType>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection<EntryType>
Specified by:
equals in interface java.util.List<EntryType>
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<EntryType>
Specified by:
hashCode in interface java.util.List<EntryType>
Overrides:
hashCode in class Persistent

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends EntryType> c)
Specified by:
addAll in interface java.util.List<EntryType>

iterator

public java.util.Iterator<EntryType> iterator()
Specified by:
iterator in interface java.lang.Iterable<EntryType>
Specified by:
iterator in interface java.util.Collection<EntryType>
Specified by:
iterator in interface java.util.List<EntryType>

listIterator

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

listIterator

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

subList

public java.util.List<EntryType> subList(int fromIndex,
                                         int toIndex)
Specified by:
subList in interface java.util.List<EntryType>