org.siebengeisslein.collections
Class ArrayList<EntryType>

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

public class ArrayList<EntryType>
extends AbstractPersistentList<EntryType>
implements java.util.RandomAccess


Nested Class Summary
 
Nested classes/interfaces inherited from class org.siebengeisslein.collections.AbstractPersistentList
AbstractPersistentList.ArrayIterator, AbstractPersistentList.ArrayListIterator, AbstractPersistentList.SubList<T>
 
Constructor Summary
ArrayList()
           
ArrayList(java.util.Collection<EntryType> types)
           
 
Method Summary
 void add(int index, EntryType element)
           
 void clear()
           
 EntryType get(int index)
           
 EntryType remove(int index)
           
 EntryType set(int index, EntryType element)
           
 int size()
           
 
Methods inherited from class org.siebengeisslein.collections.AbstractPersistentList
add, addAll, checkVersion, contains, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, subList
 
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
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ArrayList

public ArrayList()

ArrayList

public ArrayList(java.util.Collection<EntryType> types)
Method Detail

size

public int size()
Specified by:
size in interface java.util.Collection<EntryType>
Specified by:
size 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>
Overrides:
clear in class AbstractPersistentList<EntryType>

get

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

set

public EntryType set(int index,
                     EntryType element)
Specified by:
set in interface java.util.List<EntryType>

add

public void add(int index,
                EntryType element)
Specified by:
add in interface java.util.List<EntryType>

remove

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