类 GenericAnnotationAttributes<A extends java.lang.annotation.Annotation>

  • 类型参数:
    A - The type of Annotation
    所有已实现的接口:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>
    直接已知子类:
    ResolvablePlaceholderAnnotationAttributes

    public class GenericAnnotationAttributes<A extends java.lang.annotation.Annotation>
    extends org.springframework.core.annotation.AnnotationAttributes
    Generic AnnotationAttributes
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    AnnotationAttributes, 序列化表格
    • 嵌套类概要

      • 从类继承的嵌套类/接口 java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • 从接口继承的嵌套类/接口 java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.Class<A> annotationType()
      Get The class of Annotation.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      static <A extends java.lang.annotation.Annotation>
      GenericAnnotationAttributes<A>
      of​(A annotation)
      Create an instance of GenericAnnotationAttributes from the specified annotation
      static <A extends java.lang.annotation.Annotation>
      GenericAnnotationAttributes<A>
      of​(org.springframework.core.annotation.AnnotationAttributes attributes)
      Create an instance of GenericAnnotationAttributes from the specified AnnotationAttributes
      static java.util.Set<org.springframework.core.annotation.AnnotationAttributes> ofSet​(org.springframework.core.annotation.AnnotationAttributes... attributesArray)
      • 从类继承的方法 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
      • 从类继承的方法 java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • 从类继承的方法 java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • 从接口继承的方法 java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • 构造器详细资料

      • 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 The class of Annotation.

        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 of GenericAnnotationAttributes from the specified annotation
        类型参数:
        A - the class of annotation
        参数:
        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 of GenericAnnotationAttributes from the specified AnnotationAttributes
        类型参数:
        A - the class of annotation
        参数:
        attributes - annotationAttributes
        返回:
        non-null
      • ofSet

        @NonNull
        public static java.util.Set<org.springframework.core.annotation.AnnotationAttributes> ofSet​(@Nullable
                                                                                                    org.springframework.core.annotation.AnnotationAttributes... attributesArray)
        参数:
        attributesArray -
        返回:
        non-null