Class StringKeyMapEntryMarshaller<T extends Map.Entry<String,Object>>

java.lang.Object
org.wildfly.clustering.marshalling.protostream.util.StringKeyMapEntryMarshaller<T>
Type Parameters:
T - the map entry type of this marshaller
All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<T>, org.infinispan.protostream.ProtobufTagMarshaller<T>, Marshallable<T>, ProtoStreamMarshaller<T>, Readable<T>, Writable<T>

public class StringKeyMapEntryMarshaller<T extends Map.Entry<String,Object>> extends Object implements ProtoStreamMarshaller<T>
An optimized marshaller for a Map.Entry whose key is a string.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.infinispan.protostream.ProtobufTagMarshaller

    org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, org.infinispan.protostream.ProtobufTagMarshaller.ReadContext, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext
  • Field Summary

    Fields inherited from interface org.infinispan.protostream.BaseMarshaller

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a marshaller for a string-keyed map entry
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends T>
    Returns the type of object handled by this marshallable instance.
    Reads an object from the specified reader.
    void
    writeTo(ProtoStreamWriter writer, T entry)
    Writes the specified object to the specified writer.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.infinispan.protostream.BaseMarshaller

    getSubClassNames

    Methods inherited from interface Marshallable

    size

    Methods inherited from interface ProtoStreamMarshaller

    getTypeName, read, wrap, wrap, write
  • Constructor Details

    • StringKeyMapEntryMarshaller

      public StringKeyMapEntryMarshaller(BiFunction<String,Object,T> factory)
      Creates a marshaller for a string-keyed map entry
      Parameters:
      factory - the map entry factory
  • Method Details