Class GenericMap

  • All Implemented Interfaces:

    @Serializable(with = GenericMapExtensionSerializer.class) 
    public final class GenericMap<K extends Object, V extends Object>
    
                        

    A wrapper data class for a Map to be serialized with MsgPack format. Without this wrapper, a map will be serialized as an object. This wrapper will serialize the map as a Generic Map extension type.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Map<K, V> map
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericMap(Map<K, V> map)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Map<K, V> getMap() The map to be serialized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericMap

        GenericMap(Map<K, V> map)
    • Method Detail

      • getMap

         final Map<K, V> getMap()

        The map to be serialized.