public class PersistentList<E> extends AbstractPersistentSimpleCollection<E,java.util.List<E>> implements java.util.List<E>
PersistentCollection.ChangeListener<C>, PersistentCollection.InitializationCallback<C>, PersistentCollection.InitializationListener<C>, PersistentCollection.Initializer<C>| Constructor and Description |
|---|
PersistentList() |
PersistentList(boolean initialized) |
PersistentList(java.util.List<E> collection) |
PersistentList(java.util.List<E> collection,
boolean clone) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
E element) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
PersistentList<E> |
clone(boolean uninitialize)
Clone a persistent collection
|
void |
doInitialize(java.util.List<E> list,
boolean empty) |
E |
get(int index) |
int |
indexOf(java.lang.Object o) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
E |
set(int index,
E element) |
java.util.List<E> |
subList(int fromIndex,
int toIndex) |
protected void |
updateFromSnapshot(java.io.ObjectInput in,
PersistentCollectionSnapshot snapshot) |
add, addAll, clear, contains, containsAll, createSnapshot, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayaddListener, addListener, checkInitializedRead, checkInitializedWrite, clearDirty, dirty, getClassLoader, getCollection, getDetachedState, getLoader, init, initialize, initializing, isDirty, readExternal, removeListener, removeListener, setLoader, toString, uninitialize, wasInitialized, withInitialized, writeExternalpublic PersistentList()
public PersistentList(boolean initialized)
public PersistentList(java.util.List<E> collection)
public PersistentList(java.util.List<E> collection, boolean clone)
public void doInitialize(java.util.List<E> list, boolean empty)
doInitialize in class AbstractPersistentCollection<java.util.List<E>>public boolean addAll(int index,
java.util.Collection<? extends E> c)
addAll in interface java.util.List<E>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<E>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<E>public java.util.ListIterator<E> listIterator()
listIterator in interface java.util.List<E>public java.util.ListIterator<E> listIterator(int index)
listIterator in interface java.util.List<E>public java.util.List<E> subList(int fromIndex, int toIndex)
subList in interface java.util.List<E>protected void updateFromSnapshot(java.io.ObjectInput in,
PersistentCollectionSnapshot snapshot)
updateFromSnapshot in class AbstractPersistentCollection<java.util.List<E>>public PersistentList<E> clone(boolean uninitialize)
PersistentCollectionclone in interface PersistentCollection<java.util.List<E>>clone in class AbstractPersistentCollection<java.util.List<E>>uninitialize - true to get an uninitialized clone of a lazy collection