Class CanBeAnnotated.Utils
java.lang.Object
com.tngtech.archunit.core.domain.properties.CanBeAnnotated.Utils
- Enclosing interface:
- CanBeAnnotated
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAnnotatedWith
(Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate) static boolean
isMetaAnnotatedWith
(Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate) static <A extends Annotation>
Function<JavaAnnotation<?>,A> toAnnotationOfType
(Class<A> type)
-
Method Details
-
isAnnotatedWith
@PublicAPI(usage=ACCESS) public static boolean isAnnotatedWith(Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate) -
isMetaAnnotatedWith
@PublicAPI(usage=ACCESS) public static boolean isMetaAnnotatedWith(Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate) -
toAnnotationOfType
@PublicAPI(usage=ACCESS) public static <A extends Annotation> Function<JavaAnnotation<?>,A> toAnnotationOfType(Class<A> type)
-