public class MapMarshaller<T extends Map<Object,Object>,C,CC> extends Object implements ProtoStreamMarshaller<T>
Map implementations.| Constructor and Description |
|---|
MapMarshaller(Class<T> targetClass,
Function<CC,T> factory,
Function<Map.Entry<C,Integer>,CC> constructorContext,
Function<T,C> context,
ProtoStreamMarshaller<C> contextMarshaller) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getJavaClass() |
T |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
T map)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
T map) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic T readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<T extends Map<Object,Object>>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
T map)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<T extends Map<Object,Object>>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, T map)
PredictableCopyright © 2021 JBoss by Red Hat. All rights reserved.