T - the map type of this marshallerpublic abstract class AbstractMapMarshaller<T extends Map<Object,Object>> extends Object implements ProtoStreamMarshaller<T>
Map that writes the entries of the map.| Modifier and Type | Field and Description |
|---|---|
protected static int |
KEY_INDEX |
protected static int |
VALUE_INDEX |
| Constructor and Description |
|---|
AbstractMapMarshaller(Class<? extends T> mapClass) |
| 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 map)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writereadFromprotected static final int KEY_INDEX
protected static final int VALUE_INDEX
public void writeTo(ProtoStreamWriter writer, T map) throws IOException
MarshallablewriteTo in interface Marshallable<T extends Map<Object,Object>>writer - a ProtoStream writermap - 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 Map<Object,Object>>getJavaClass in interface Marshallable<T extends Map<Object,Object>>Copyright © 2023 JBoss by Red Hat. All rights reserved.