Class Annotations


  • public class Annotations
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Annotations.Builder<T extends java.lang.annotation.Annotation>  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Annotations()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.lang.annotation.Annotation>
      Annotations.Builder<T>
      builder​(java.lang.Class<T> annotationType)
      Returns a builder that can be used to construct an annotation instance.
      static <T extends java.lang.annotation.Annotation>
      T
      create​(java.lang.Class<T> annotationType)
      Convenience method that constructs an annotation instance with no elements.
      static <T extends java.lang.annotation.Annotation>
      T
      create​(java.lang.Class<T> annotationType, java.lang.Object value)
      Convenience method that constructs an annotation instance with a single "value" element.
      • Methods inherited from class java.lang.Object

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

      • Annotations

        private Annotations()
    • Method Detail

      • builder

        public static <T extends java.lang.annotation.Annotation> Annotations.Builder<T> builder​(java.lang.Class<T> annotationType)
        Returns a builder that can be used to construct an annotation instance.
      • create

        public static <T extends java.lang.annotation.Annotation> T create​(java.lang.Class<T> annotationType,
                                                                           java.lang.Object value)
        Convenience method that constructs an annotation instance with a single "value" element.
      • create

        public static <T extends java.lang.annotation.Annotation> T create​(java.lang.Class<T> annotationType)
        Convenience method that constructs an annotation instance with no elements.