类 GenericAnnotationAttributes<A extends java.lang.annotation.Annotation>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,java.lang.Object>
-
- org.springframework.core.annotation.AnnotationAttributes
-
- io.microsphere.spring.core.annotation.GenericAnnotationAttributes<A>
-
- 类型参数:
A
- The type ofAnnotation
- 所有已实现的接口:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.Object>
public class GenericAnnotationAttributes<A extends java.lang.annotation.Annotation> extends org.springframework.core.annotation.AnnotationAttributes
GenericAnnotationAttributes
-
-
构造器概要
构造器 构造器 说明 GenericAnnotationAttributes(A annotation)
GenericAnnotationAttributes(java.util.Map<java.lang.String,java.lang.Object> another, java.lang.Class<A> annotationType)
GenericAnnotationAttributes(org.springframework.core.annotation.AnnotationAttributes another)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.Class<A>
annotationType()
Get Theclass
ofAnnotation
.boolean
equals(java.lang.Object o)
int
hashCode()
static <A extends java.lang.annotation.Annotation>
GenericAnnotationAttributes<A>of(A annotation)
Create an instance ofGenericAnnotationAttributes
from the specifiedannotation
static <A extends java.lang.annotation.Annotation>
GenericAnnotationAttributes<A>of(org.springframework.core.annotation.AnnotationAttributes attributes)
Create an instance ofGenericAnnotationAttributes
from the specifiedAnnotationAttributes
static java.util.Set<org.springframework.core.annotation.AnnotationAttributes>
ofSet(org.springframework.core.annotation.AnnotationAttributes... attributesArray)
Create aset
ofGenericAnnotationAttributes
-
从类继承的方法 org.springframework.core.annotation.AnnotationAttributes
fromMap, getAnnotation, getAnnotation, getAnnotationArray, getAnnotationArray, getBoolean, getClass, getClassArray, getEnum, getNumber, getString, getStringArray, toString
-
从类继承的方法 java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
-
-
-
构造器详细资料
-
GenericAnnotationAttributes
public GenericAnnotationAttributes(A annotation)
-
GenericAnnotationAttributes
public GenericAnnotationAttributes(org.springframework.core.annotation.AnnotationAttributes another)
-
GenericAnnotationAttributes
public GenericAnnotationAttributes(java.util.Map<java.lang.String,java.lang.Object> another, java.lang.Class<A> annotationType)
-
-
方法详细资料
-
annotationType
@Nullable public java.lang.Class<A> annotationType()
Get Theclass
ofAnnotation
.Current method will override the super classes' method since Spring Framework 4.2
- 覆盖:
annotationType
在类中org.springframework.core.annotation.AnnotationAttributes
- 返回:
null
if not found
-
equals
public boolean equals(java.lang.Object o)
- 指定者:
equals
在接口中java.util.Map<java.lang.String,java.lang.Object>
- 覆盖:
equals
在类中java.util.AbstractMap<java.lang.String,java.lang.Object>
-
hashCode
public int hashCode()
- 指定者:
hashCode
在接口中java.util.Map<java.lang.String,java.lang.Object>
- 覆盖:
hashCode
在类中java.util.AbstractMap<java.lang.String,java.lang.Object>
-
of
@NonNull public static <A extends java.lang.annotation.Annotation> GenericAnnotationAttributes<A> of(@NonNull A annotation)
Create an instance ofGenericAnnotationAttributes
from the specifiedannotation
- 类型参数:
A
- theclass
ofannotation
- 参数:
annotation
-annotation
- 返回:
- non-null
-
of
@NonNull public static <A extends java.lang.annotation.Annotation> GenericAnnotationAttributes<A> of(@NonNull org.springframework.core.annotation.AnnotationAttributes attributes)
Create an instance ofGenericAnnotationAttributes
from the specifiedAnnotationAttributes
- 类型参数:
A
- theclass
ofannotation
- 参数:
attributes
-annotationAttributes
- 返回:
- non-null
-
ofSet
@NonNull public static java.util.Set<org.springframework.core.annotation.AnnotationAttributes> ofSet(@Nullable org.springframework.core.annotation.AnnotationAttributes... attributesArray)
Create aset
ofGenericAnnotationAttributes
- 参数:
attributesArray
-- 返回:
- non-null
-
-