Class AbstractCollectionAdapter<C extends Collection<E>,E>
- java.lang.Object
-
- org.infinispan.protostream.types.java.collections.AbstractCollectionAdapter<C,E>
-
- All Implemented Interfaces:
org.infinispan.protostream.containers.ElementContainerAdapter<C>
,org.infinispan.protostream.containers.IterableElementContainerAdapter<C,E>
- Direct Known Subclasses:
ArrayListAdapter
,HashSetAdapter
,LinkedHashSetAdapter
,LinkedListAdapter
,TreeSetAdapter
public abstract class AbstractCollectionAdapter<C extends Collection<E>,E> extends Object implements org.infinispan.protostream.containers.IterableElementContainerAdapter<C,E>
- Since:
- 4.4
- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description AbstractCollectionAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
appendElement(C c, E e)
abstract C
create(int size)
Iterator<E>
getElements(C c)
int
getNumElements(C c)
-
-
-
Method Detail
-
create
public abstract C create(int size)
-
getNumElements
public final int getNumElements(C c)
- Specified by:
getNumElements
in interfaceorg.infinispan.protostream.containers.ElementContainerAdapter<C extends Collection<E>>
-
getElements
public final Iterator<E> getElements(C c)
- Specified by:
getElements
in interfaceorg.infinispan.protostream.containers.IterableElementContainerAdapter<C extends Collection<E>,E>
-
-