Package com.db4o.collections
Class ActivatableArrayList<E>
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList<E>
- 
- java.util.ArrayList<E>
- 
- com.db4o.collections.ActivatableArrayList<E>
 
 
 
 
- 
- All Implemented Interfaces:
- ActivatableCollection<E>,- ActivatableList<E>,- Activatable,- java.io.Serializable,- java.lang.Cloneable,- java.lang.Iterable<E>,- java.util.Collection<E>,- java.util.List<E>,- java.util.RandomAccess
 
 public class ActivatableArrayList<E> extends java.util.ArrayList<E> implements ActivatableList<E> extends ArrayList with Transparent Activation and Transparent Persistence support- Since:
- 7.9
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ActivatableArrayList()ActivatableArrayList(int size)ActivatableArrayList(java.util.Collection<E> list)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(ActivationPurpose purpose)Should be called by every reading field access of an object.voidadd(int index, E element)booleanadd(E e)booleanaddAll(int index, java.util.Collection<? extends E> c)booleanaddAll(java.util.Collection<? extends E> c)voidbind(Activator activator)Called by db4o after the object instantiation.voidclear()java.lang.Objectclone()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)voidensureCapacity(int minCapacity)booleanequals(java.lang.Object o)Eget(int index)inthashCode()intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<E>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<E>listIterator()java.util.ListIterator<E>listIterator(int index)Eremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)protected voidremoveRange(int fromIndex, int toIndex)booleanretainAll(java.util.Collection<?> c)Eset(int index, E element)intsize()java.util.List<E>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] a)java.lang.StringtoString()voidtrimToSize()
 
- 
- 
- 
Constructor Detail- 
ActivatableArrayListpublic ActivatableArrayList() 
 - 
ActivatableArrayListpublic ActivatableArrayList(int size) 
 - 
ActivatableArrayListpublic ActivatableArrayList(java.util.Collection<E> list) 
 
- 
 - 
Method Detail- 
activatepublic void activate(ActivationPurpose purpose) Description copied from interface:ActivatableShould be called by every reading field access of an object.
 
 The recommended implementation of this method is to callActivator.activate(ActivationPurpose)on theActivatorthat was previously passed toActivatable.bind(Activator).- Specified by:
- activatein interface- Activatable
- Parameters:
- purpose- Whereever this object is accessed to read or write. See- ActivationPurpose
 
 - 
bindpublic void bind(Activator activator) Description copied from interface:ActivatableCalled by db4o after the object instantiation. This method is called to bind the object to the current activator
 
 The recommended implementation of this method is to store the passedActivatorin a transient field of the object.- Specified by:
- bindin interface- Activatable
- Parameters:
- activator- the Activator instance to bind
 
 - 
addpublic boolean add(E e) 
 - 
addpublic void add(int index, E element)
 - 
addAllpublic boolean addAll(java.util.Collection<? extends E> c) 
 - 
addAllpublic boolean addAll(int index, java.util.Collection<? extends E> c)
 - 
clearpublic void clear() 
 - 
clonepublic java.lang.Object clone() - Overrides:
- clonein class- java.util.ArrayList<E>
 
 - 
containspublic boolean contains(java.lang.Object o) 
 - 
containsAllpublic boolean containsAll(java.util.Collection<?> c) 
 - 
equalspublic boolean equals(java.lang.Object o) 
 - 
getpublic E get(int index) 
 - 
hashCodepublic int hashCode() 
 - 
indexOfpublic int indexOf(java.lang.Object o) 
 - 
iteratorpublic java.util.Iterator<E> iterator() 
 - 
isEmptypublic boolean isEmpty() 
 - 
lastIndexOfpublic int lastIndexOf(java.lang.Object o) 
 - 
listIteratorpublic java.util.ListIterator<E> listIterator() 
 - 
listIteratorpublic java.util.ListIterator<E> listIterator(int index) 
 - 
removepublic E remove(int index) 
 - 
removepublic boolean remove(java.lang.Object o) 
 - 
sizepublic int size() 
 - 
subListpublic java.util.List<E> subList(int fromIndex, int toIndex) 
 - 
toArraypublic java.lang.Object[] toArray() 
 - 
toArraypublic <T> T[] toArray(T[] a) 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> c) 
 - 
removeRangeprotected void removeRange(int fromIndex, int toIndex)- Overrides:
- removeRangein class- java.util.ArrayList<E>
 
 - 
ensureCapacitypublic void ensureCapacity(int minCapacity) - Overrides:
- ensureCapacityin class- java.util.ArrayList<E>
 
 - 
trimToSizepublic void trimToSize() - Overrides:
- trimToSizein class- java.util.ArrayList<E>
 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> c) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.util.AbstractCollection<E>
 
 
- 
 
-