Package io.activej.types
Class AnnotationUtils
java.lang.Object
io.activej.types.AnnotationUtils
Various utility methods to operate on annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
AgetAnnotation(Class<A> type, Annotation[] annotations) Returns the first annotation of a given annotation type, ornullif none matchesstatic booleanhasAnnotation(Class<? extends Annotation> type, Annotation[] annotations) Checks whether annotations contain an annotation of a given type
-
Constructor Details
-
AnnotationUtils
public AnnotationUtils()
-
-
Method Details
-
hasAnnotation
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, ornullif none matches
-