Package com.fauna.codec
Class MapOf<K extends java.lang.String,V>
- java.lang.Object
-
- com.fauna.codec.ParameterizedOf<java.util.Map<K,V>>
-
- com.fauna.codec.MapOf<K,V>
-
- Type Parameters:
K
- The type of keys maintained by the map (constrained toString
).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 aMap
withString
keys and a specified value type, allowing for retention of the generic typeV
during deserialization by circumventing type erasure.
-
-
Method Summary
-
Methods inherited from class com.fauna.codec.ParameterizedOf
getActualTypeArguments, getOwnerType, getRawType
-
-
-
-
Constructor Detail
-
MapOf
public MapOf(java.lang.Class<V> valueClass)
Constructs aMapOf
instance for a map withString
keys and the specified value type.- Parameters:
valueClass
- The class of the map's values.
-
-