Class Annotation


  • public final class Annotation
    extends java.lang.Object
    Provides information about, and access to, an annotation of a field, class or interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends java.lang.annotation.Annotation>
      T
      getAnnotation​(java.lang.Class<T> annotationType)  
      java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()  
      • Methods inherited from class java.lang.Object

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

      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(java.lang.Class<T> annotationType)
      • getAnnotationType

        public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()