Class MapOf<K extends java.lang.String,​V>

  • Type Parameters:
    K - The type of keys maintained by the map (constrained to String).
    V - The type of mapped values.
    All Implemented Interfaces:
    java.lang.reflect.ParameterizedType, java.lang.reflect.Type

    public final class MapOf<K extends java.lang.String,​V>
    extends ParameterizedOf<java.util.Map<K,​V>>
    Represents a Map with String keys and a specified value type, allowing for retention of the generic type V during deserialization by circumventing type erasure.
    • Constructor Summary

      Constructors 
      Constructor Description
      MapOf​(java.lang.Class<V> valueClass)
      Constructs a MapOf instance for a map with String keys and the specified value type.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.reflect.Type

        getTypeName
    • Constructor Detail

      • MapOf

        public MapOf​(java.lang.Class<V> valueClass)
        Constructs a MapOf instance for a map with String keys and the specified value type.
        Parameters:
        valueClass - The class of the map's values.