org.rhq.helpers.perftest.support.jpa
Class Annotations
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<Class<?>,Object>
org.rhq.helpers.perftest.support.jpa.Annotations
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Class<?>,Object>
public class Annotations
- extends HashMap<Class<?>,Object>
A minimal extension of HashMap with Class keys and Object values.
Provides only a convenience get(Class) method.
- Author:
- Lukas Krejci
- See Also:
- Serialized Form
|
Method Summary |
|
get(Class<T> annotationClass)
Returns the annotation of given class (if present in this map) cast
to the class. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Annotations
public Annotations()
Annotations
public Annotations(int initialCapacity,
float loadFactor)
Annotations
public Annotations(int initialCapacity)
Annotations
public Annotations(Map<? extends Class<?>,? extends Object> m)
get
public <T> T get(Class<T> annotationClass)
- Returns the annotation of given class (if present in this map) cast
to the class. This is a convenience method for the users of this class
so that they don't have to cast the annotation object themselves.
- Type Parameters:
T - - Parameters:
annotationClass -
- Returns:
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.