Class JDKCollectionAdapter<C extends java.util.Collection>
- java.lang.Object
-
- org.datanucleus.store.types.containers.ElementContainerAdapter<C>
-
- org.datanucleus.store.types.containers.JDKCollectionAdapter<C>
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>
,ContainerAdapter<C>
- Direct Known Subclasses:
JDKListAdapter
public class JDKCollectionAdapter<C extends java.util.Collection> extends ElementContainerAdapter<C>
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.types.containers.ElementContainerAdapter
container
-
-
Constructor Summary
Constructors Constructor Description JDKCollectionAdapter(C container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.Object newElement)
void
clear()
C
getContainer()
java.util.Iterator<java.lang.Object>
iterator()
void
remove(java.lang.Object element)
-
Methods inherited from class org.datanucleus.store.types.containers.ElementContainerAdapter
setContainer
-
-
-
-
Constructor Detail
-
JDKCollectionAdapter
public JDKCollectionAdapter(C container)
-
-
Method Detail
-
iterator
public java.util.Iterator<java.lang.Object> iterator()
-
getContainer
public C getContainer()
- Specified by:
getContainer
in interfaceContainerAdapter<C extends java.util.Collection>
- Overrides:
getContainer
in classElementContainerAdapter<C extends java.util.Collection>
-
clear
public void clear()
-
add
public void add(java.lang.Object newElement)
- Specified by:
add
in classElementContainerAdapter<C extends java.util.Collection>
-
remove
public void remove(java.lang.Object element)
- Specified by:
remove
in classElementContainerAdapter<C extends java.util.Collection>
-
-