public class Annotations extends HashMap<Class<?>,Object>
HashMap with Class keys and Object values.
Provides only a convenience get(Class) method.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Annotations() |
Annotations(int initialCapacity) |
Annotations(int initialCapacity,
float loadFactor) |
Annotations(Map<? extends Class<?>,? extends Object> m) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> annotationClass)
Returns the annotation of given class (if present in this map) cast
to the class.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic Annotations()
public Annotations(int initialCapacity,
float loadFactor)
public Annotations(int initialCapacity)
public <T> T get(Class<T> annotationClass)
T - annotationClass - Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.