public class AnnotationMirrorMap<V>
extends java.lang.Object
implements java.util.Map<javax.lang.model.element.AnnotationMirror,V>
AnnotationUtils.areSame(javax.lang.model.element.AnnotationMirror, javax.lang.model.element.AnnotationMirror)
.
For example, the specification for the containsKey(Object key) method says: "returns true if
and only if this map contains a mapping for a key k such that (key == null ? k == null :
key.equals(k))." The specification for containsKey(java.lang.Object)
is "returns true
if and only if this map contains a mapping for a key k such that (key == null ? k == null :
AnnotationUtils.areSame(key, k))."
AnnotationMirror is an interface and not all implementing classes provide a correct equals method; therefore, existing implementations of Map cannot be used.
Constructor and Description |
---|
AnnotationMirrorMap() |
AnnotationMirrorMap(java.util.Map<javax.lang.model.element.AnnotationMirror,? extends V> primaries) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<javax.lang.model.element.AnnotationMirror,V>> |
entrySet() |
V |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.Set<javax.lang.model.element.AnnotationMirror> |
keySet() |
V |
put(javax.lang.model.element.AnnotationMirror key,
V value) |
void |
putAll(java.util.Map<? extends javax.lang.model.element.AnnotationMirror,? extends V> m) |
V |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection<V> |
values() |
public AnnotationMirrorMap()
public AnnotationMirrorMap(java.util.Map<javax.lang.model.element.AnnotationMirror,? extends V> primaries)
public int size()
size
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public boolean isEmpty()
isEmpty
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public V get(java.lang.Object key)
get
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public V put(javax.lang.model.element.AnnotationMirror key, V value)
put
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public V remove(java.lang.Object key)
remove
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public void putAll(java.util.Map<? extends javax.lang.model.element.AnnotationMirror,? extends V> m)
putAll
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public void clear()
clear
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public java.util.Set<javax.lang.model.element.AnnotationMirror> keySet()
keySet
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>
public java.util.Collection<V> values()
values
in interface java.util.Map<javax.lang.model.element.AnnotationMirror,V>