Class AnnotatedTypeMap<K extends AnnotatedType,V>

java.lang.Object
io.leangen.geantyref.AnnotatedTypeMap<K,V>
Type Parameters:
V - the type of mapped values
All Implemented Interfaces:
Map<K,V>

public class AnnotatedTypeMap<K extends AnnotatedType,V> extends Object implements Map<K,V>
A Map implementation keyed by AnnotatedType. The standard maps do not usually suffice as AnnotatedType implements neither equals nor hashCode. This implementation overcomes that limitation by transparently turning each AnnotatedType used as the key into the canonical form using GenericTypeReflector.toCanonical(AnnotatedType). By default, AnnotatedTypeMap instances are backed by a HashMap, but any map can be used instead. The guarantees of AnnotatedTypeMap are then the same as of the map it is backed by.
See Also: