Class ArrayAdapter<C>
- java.lang.Object
-
- org.datanucleus.store.types.containers.ElementContainerAdapter<C>
-
- org.datanucleus.store.types.containers.ArrayAdapter<C>
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>,ContainerAdapter<C>,SequenceAdapter
public class ArrayAdapter<C> extends ElementContainerAdapter<C> implements SequenceAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classArrayAdapter.ArrayIteratorBased on Apache Collections 3.2 implementationprivate classArrayAdapter.ObjectArrayIterator<E>Based on Apache Collections 3.2 implementation.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.Object>buffer-
Fields inherited from class org.datanucleus.store.types.containers.ElementContainerAdapter
container
-
-
Constructor Summary
Constructors Constructor Description ArrayAdapter(C container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.Object newElement)voidclear()private java.util.List<java.lang.Object>getBuffer()CgetContainer()java.util.Iterator<java.lang.Object>iterator()voidremove(java.lang.Object element)voidupdate(java.lang.Object newElement, int position)-
Methods inherited from class org.datanucleus.store.types.containers.ElementContainerAdapter
setContainer
-
-
-
-
Constructor Detail
-
ArrayAdapter
public ArrayAdapter(C container)
-
-
Method Detail
-
iterator
public java.util.Iterator<java.lang.Object> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<C>
-
getContainer
public C getContainer()
- Specified by:
getContainerin interfaceContainerAdapter<C>- Overrides:
getContainerin classElementContainerAdapter<C>
-
clear
public void clear()
- Specified by:
clearin interfaceContainerAdapter<C>
-
add
public void add(java.lang.Object newElement)
- Specified by:
addin classElementContainerAdapter<C>
-
remove
public void remove(java.lang.Object element)
- Specified by:
removein classElementContainerAdapter<C>
-
getBuffer
private java.util.List<java.lang.Object> getBuffer()
-
update
public void update(java.lang.Object newElement, int position)- Specified by:
updatein interfaceSequenceAdapter
-
-