Class AnnotationUtils


  • public class AnnotationUtils
    extends java.lang.Object
    A few utilities which are not exposed to external modules.
    See Also:
    AnnotationSupport.findAnnotation(AnnotatedElement, Class)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <A extends java.lang.annotation.Annotation>
      java.util.Optional<A>
      findAnnotation​(java.lang.reflect.AnnotatedElement element, java.lang.Class<A> annotationType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findAnnotation

        public static <A extends java.lang.annotation.Annotation> java.util.Optional<A> findAnnotation​(java.lang.reflect.AnnotatedElement element,
                                                                                                       java.lang.Class<A> annotationType)