Class CollectionExternalizer<T extends Collection<Object>,C,CC>
- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.util.CollectionExternalizer<T,C,CC>
-
- All Implemented Interfaces:
Externalizer<T>
- Direct Known Subclasses:
BoundedCollectionExternalizer,ContextualCollectionExternalizer,UnboundedCollectionExternalizer
public class CollectionExternalizer<T extends Collection<Object>,C,CC> extends Object implements Externalizer<T>
Generic externalizer for implementations ofCollection.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>getTargetClass()TreadObject(ObjectInput input)OptionalIntsize(T collection)voidwriteObject(ObjectOutput output, T collection)
-
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, T collection) throws IOException
- Specified by:
writeObjectin interfaceExternalizer<T extends Collection<Object>>- Throws:
IOException
-
readObject
public T readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceExternalizer<T extends Collection<Object>>- Throws:
IOExceptionClassNotFoundException
-
size
public OptionalInt size(T collection)
- Specified by:
sizein interfaceExternalizer<T extends Collection<Object>>
-
getTargetClass
public Class<T> getTargetClass()
- Specified by:
getTargetClassin interfaceExternalizer<T extends Collection<Object>>
-
-