Class JDKCollectionAdapter<C extends Collection>
- java.lang.Object
-
- org.datanucleus.store.types.ElementContainerAdapter<C>
-
- org.datanucleus.store.types.containers.JDKCollectionAdapter<C>
-
- All Implemented Interfaces:
Iterable<Object>,ContainerAdapter<C>
- Direct Known Subclasses:
JDKListAdapter
public class JDKCollectionAdapter<C extends Collection> extends ElementContainerAdapter<C>
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.types.ElementContainerAdapter
container
-
-
Constructor Summary
Constructors Constructor Description JDKCollectionAdapter(C container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object newElement)voidclear()CgetContainer()Iterator<Object>iterator()voidremove(Object element)-
Methods inherited from class org.datanucleus.store.types.ElementContainerAdapter
setContainer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
JDKCollectionAdapter
public JDKCollectionAdapter(C container)
-
-
Method Detail
-
getContainer
public C getContainer()
- Specified by:
getContainerin interfaceContainerAdapter<C extends Collection>- Overrides:
getContainerin classElementContainerAdapter<C extends Collection>
-
clear
public void clear()
-
add
public void add(Object newElement)
- Specified by:
addin classElementContainerAdapter<C extends Collection>
-
remove
public void remove(Object element)
- Specified by:
removein classElementContainerAdapter<C extends Collection>
-
-