Class GenericAnnotationAttributes<A extends Annotation>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
org.springframework.core.annotation.AnnotationAttributes
io.microsphere.spring.core.annotation.GenericAnnotationAttributes<A>
- Type Parameters:
A
- The type ofAnnotation
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
- Direct Known Subclasses:
ResolvablePlaceholderAnnotationAttributes
public class GenericAnnotationAttributes<A extends Annotation>
extends org.springframework.core.annotation.AnnotationAttributes
Generic
AnnotationAttributes
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
AnnotationAttributes
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionGenericAnnotationAttributes
(A annotation) GenericAnnotationAttributes
(org.springframework.core.annotation.AnnotationAttributes attributes) -
Method Summary
Modifier and TypeMethodDescriptionGet Theclass
ofAnnotation
.boolean
int
hashCode()
static <A extends Annotation>
GenericAnnotationAttributes<A>of
(A annotation) Create an instance ofGenericAnnotationAttributes
from the specifiedannotation
static <A extends Annotation>
GenericAnnotationAttributes<A>of
(org.springframework.core.annotation.AnnotationAttributes attributes) Create an instance ofGenericAnnotationAttributes
from the specifiedAnnotationAttributes
static Set<org.springframework.core.annotation.AnnotationAttributes>
ofSet
(org.springframework.core.annotation.AnnotationAttributes... attributesArray) Create aset
ofGenericAnnotationAttributes
toString()
Methods inherited from class org.springframework.core.annotation.AnnotationAttributes
fromMap, getAnnotation, getAnnotation, getAnnotationArray, getAnnotationArray, getBoolean, getClass, getClassArray, getEnum, getNumber, getString, getStringArray
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
GenericAnnotationAttributes
-
GenericAnnotationAttributes
public GenericAnnotationAttributes(org.springframework.core.annotation.AnnotationAttributes attributes) -
GenericAnnotationAttributes
-
-
Method Details
-
annotationType
Get Theclass
ofAnnotation
.Current method will override the super classes' method since Spring Framework 4.2
- Overrides:
annotationType
in classorg.springframework.core.annotation.AnnotationAttributes
- Returns:
- non-null
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classorg.springframework.core.annotation.AnnotationAttributes
-
of
@Nonnull public static <A extends Annotation> GenericAnnotationAttributes<A> of(@Nonnull A annotation) Create an instance ofGenericAnnotationAttributes
from the specifiedannotation
- Type Parameters:
A
- theclass
ofannotation
- Parameters:
annotation
-annotation
- Returns:
- non-null
-
of
@Nonnull public static <A extends Annotation> GenericAnnotationAttributes<A> of(@Nonnull org.springframework.core.annotation.AnnotationAttributes attributes) Create an instance ofGenericAnnotationAttributes
from the specifiedAnnotationAttributes
- Type Parameters:
A
- theclass
ofannotation
- Parameters:
attributes
-annotationAttributes
- Returns:
- non-null
-
ofSet
@Nonnull @Immutable public static Set<org.springframework.core.annotation.AnnotationAttributes> ofSet(@Nullable org.springframework.core.annotation.AnnotationAttributes... attributesArray) Create aset
ofGenericAnnotationAttributes
- Parameters:
attributesArray
-- Returns:
- non-null
-