|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.collections.AbstractList4<E>
com.db4o.collections.ArrayList4<E>
public class ArrayList4<E>
Transparent activatable ArrayList implementation.
Implements List interface using an array to store elements.
Each ArrayList4 instance has a capacity, which indicates the
size of the internal array.
When instantiated as a result of a query, all the internal members
are NOT activated at all. When internal members are required to
perform an operation, the instance transparently activates all
the members.
ArrayList
,
Activatable
,
Serialized FormConstructor Summary | |
---|---|
ArrayList4()
Same behavior as java.util.ArrayList |
|
ArrayList4(java.util.Collection<? extends E> c)
Same behaviour as java.util.ArrayList |
|
ArrayList4(int initialCapacity)
Same behaviour as java.util.ArrayList |
Method Summary | ||
---|---|---|
void |
activate(ActivationPurpose purpose)
activate basic implementation. |
|
void |
add(int index,
E element)
same as java.util.ArrayList but transparently activates the members as required. |
|
boolean |
addAll(java.util.Collection<? extends E> c)
same as java.util.ArrayList but transparently activates the members as required. |
|
boolean |
addAll(int index,
java.util.Collection<? extends E> c)
same as java.util.ArrayList but transparently activates the members as required. |
|
void |
bind(Activator activator)
bind basic implementation. |
|
void |
clear()
same as java.util.ArrayList but transparently activates the members as required. |
|
java.lang.Object |
clone()
same as java.util.ArrayList but transparently activates the members as required. |
|
void |
ensureCapacity(int minCapacity)
same as java.util.ArrayList but transparently activates the members as required. |
|
E |
get(int index)
same as java.util.ArrayList but transparently activates the members as required. |
|
int |
indexOf(java.lang.Object o)
same as java.util.ArrayList but transparently activates the members as required. |
|
int |
lastIndexOf(java.lang.Object o)
same as java.util.ArrayList but transparently activates the members as required. |
|
E |
remove(int index)
same as java.util.ArrayList but transparently activates the members as required. |
|
E |
set(int index,
E element)
same as java.util.ArrayList but transparently activates the members as required. |
|
int |
size()
same as java.util.ArrayList but transparently activates the members as required. |
|
java.lang.Object[] |
toArray()
same as java.util.ArrayList but transparently activates the members as required. |
|
|
toArray(T[] a)
same as java.util.ArrayList but transparently activates the members as required. |
|
void |
trimToSize()
same as java.util.ArrayList but transparently activates the members as required. |
Methods inherited from class com.db4o.collections.AbstractList4 |
---|
add, contains, containsAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayList4()
ArrayList
public ArrayList4(java.util.Collection<? extends E> c)
ArrayList
public ArrayList4(int initialCapacity)
ArrayList
Method Detail |
---|
public void activate(ActivationPurpose purpose)
activate
in interface Activatable
purpose
- TODOActivatable
public void bind(Activator activator)
bind
in interface Activatable
activator
- the ActivatorActivatable
public void add(int index, E element)
add
in interface java.util.List<E>
add
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.List<E>
addAll
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public boolean addAll(int index, java.util.Collection<? extends E> c)
addAll
in interface java.util.List<E>
addAll
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.List<E>
clear
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public java.lang.Object clone()
clone
in class java.lang.Object
ArrayList
,
Activatable
public void ensureCapacity(int minCapacity)
ArrayList
,
Activatable
public E get(int index)
get
in interface java.util.List<E>
get
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<E>
indexOf
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<E>
lastIndexOf
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public E remove(int index)
remove
in interface java.util.List<E>
remove
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public E set(int index, E element)
set
in interface java.util.List<E>
set
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public int size()
size
in interface java.util.Collection<E>
size
in interface java.util.List<E>
size
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.List<E>
toArray
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.List<E>
toArray
in class com.db4o.collections.AbstractList4<E>
ArrayList
,
Activatable
public void trimToSize()
ArrayList
,
Activatable
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |