Class MapMarshaller<K, V, T extends Map<K,V>>

java.lang.Object
org.wildfly.clustering.marshalling.protostream.util.AbstractMapMarshaller<K,V,T>
org.wildfly.clustering.marshalling.protostream.util.MapMarshaller<K,V,T>
Type Parameters:
K - the map key type
V - the map value type
T - the map 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 MapMarshaller<K, V, T extends Map<K,V>> extends AbstractMapMarshaller<K,V,T>
Marshaller for a Map.
Author:
Paul Ferraro
  • Constructor Details

    • MapMarshaller

      public MapMarshaller(Supplier<T> factory)
      Creates a marshaller for a map.
      Parameters:
      factory - a map factory
  • Method Details

    • readFrom

      public T readFrom(ProtoStreamReader reader) throws IOException
      Description copied from interface: Readable
      Reads an object from the specified reader.
      Parameters:
      reader - a ProtoStream reader
      Returns:
      the read object
      Throws:
      IOException - if the object could not be read