Class AnnotationUtils

java.lang.Object
io.activej.types.AnnotationUtils

public final class AnnotationUtils extends Object
Various utility methods to operate on annotations
  • Constructor Details

    • AnnotationUtils

      public AnnotationUtils()
  • Method Details

    • hasAnnotation

      public static boolean hasAnnotation(Class<? extends Annotation> type, Annotation[] annotations)
      Checks whether annotations contain an annotation of a given type
    • getAnnotation

      @Nullable public static <A extends Annotation> A getAnnotation(Class<A> type, Annotation[] annotations)
      Returns the first annotation of a given annotation type, or null if none matches