T - the collection type of this marshallerpublic abstract class AbstractCollectionMarshaller<T extends Collection<Object>> extends Object implements ProtoStreamMarshaller<T>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ELEMENT_INDEX |
| Constructor and Description |
|---|
AbstractCollectionMarshaller(Class<? extends T> collectionClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
void |
writeTo(ProtoStreamWriter writer,
T collection)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, readFrom, writeToreadFrom, sizeprotected static final int ELEMENT_INDEX
public void writeTo(ProtoStreamWriter writer, T collection) throws IOException
MarshallablewriteTo in interface Marshallable<T extends Collection<Object>>writer - a ProtoStream writercollection - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends T> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<T extends Collection<Object>>getJavaClass in interface Marshallable<T extends Collection<Object>>Copyright © 2021 JBoss by Red Hat. All rights reserved.