Package com.blackrook.json.annotation
Annotation Interface JSONMapType
Provides a hint to the default deserializer that the generic types for
a map-based collection that takes a two types (Maps).
Java's Generics are not reified as class data, and cannot be queried via reflection, hence why this hint exists.
If the type to deserialize to is an interface or abstract class, the following implementations are used for the underlying collection type (searched in this order):
- SortedMap<K, V> - TreeMap
- Map<K, V> - HashMap
JSONConversionException
will occur.- Since:
- 1.1.0
-
Optional Element Summary