org.siebengeisslein.collections
Class AbstractPersistentList.SubList<T>

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.collections.AbstractCollection<EntryType>
          extended by org.siebengeisslein.collections.AbstractPersistentList<T>
              extended by org.siebengeisslein.collections.AbstractPersistentList.SubList<T>
All Implemented Interfaces:
java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, Instrumented
Enclosing class:
AbstractPersistentList<EntryType>

public static class AbstractPersistentList.SubList<T>
extends AbstractPersistentList<T>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.siebengeisslein.collections.AbstractPersistentList
AbstractPersistentList.ArrayIterator, AbstractPersistentList.ArrayListIterator, AbstractPersistentList.SubList<T>
 
Constructor Summary
AbstractPersistentList.SubList(AbstractPersistentList<T> backingList, int fromIndex, int toIndex)
           
 
Method Summary
 void add(int pos, T t)
           
protected  void checkVersion()
           
 T get(int pos)
           
protected  void incVersion()
           
 T remove(int index)
           
 T set(int pos, T t)
           
 int size()
           
 
Methods inherited from class org.siebengeisslein.collections.AbstractPersistentList
add, addAll, clear, contains, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, subList
 
Methods inherited from class org.siebengeisslein.collections.AbstractCollection
addAll, containsAll, getVersion, 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
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

AbstractPersistentList.SubList

public AbstractPersistentList.SubList(AbstractPersistentList<T> backingList,
                                      int fromIndex,
                                      int toIndex)
Method Detail

checkVersion

protected void checkVersion()
Overrides:
checkVersion in class AbstractPersistentList<T>

incVersion

protected void incVersion()
Overrides:
incVersion in class AbstractCollection<T>

remove

public T remove(int index)

set

public T set(int pos,
             T t)

add

public void add(int pos,
                T t)

get

public T get(int pos)

size

public int size()