Interface AnnotatedType

    • Method Detail

      • getAnnotations

        java.lang.Object[] getAnnotations()
        Obtains the annotations.
        Returns:
        Annotations.
      • getAnnotation

        default <A> A getAnnotation​(java.lang.Class<A> type)
        Obtains the first annotation matching the type.
        Type Parameters:
        A - Type of annotation.
        Parameters:
        type - Type of annotation.
        Returns:
        First annotation matching the type.
      • getAnnotations

        default <A> A[] getAnnotations​(java.lang.Class<A> type)
        Obtain all annotations matching the type.
        Type Parameters:
        A - Type of annotation.
        Parameters:
        type - Type of annotation.
        Returns:
        All annotations matching the type. May be empty array if no matches.