Class Annotations


  • public class Annotations
    extends Object
    • Method Detail

      • builder

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

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

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