Class CanBeAnnotated.Utils
java.lang.Object
com.tngtech.archunit.core.domain.properties.CanBeAnnotated.Utils
- Enclosing interface:
- CanBeAnnotated
public static final class CanBeAnnotated.Utils
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static boolean
isAnnotatedWith(java.util.Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate)
static boolean
isMetaAnnotatedWith(java.util.Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate)
static <A extends java.lang.annotation.Annotation>
Function<JavaAnnotation<?>,A>toAnnotationOfType(java.lang.Class<A> type)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
isAnnotatedWith
@PublicAPI(usage=ACCESS) public static boolean isAnnotatedWith(java.util.Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate) -
isMetaAnnotatedWith
@PublicAPI(usage=ACCESS) public static boolean isMetaAnnotatedWith(java.util.Collection<? extends JavaAnnotation<?>> annotations, DescribedPredicate<? super JavaAnnotation<?>> predicate) -
toAnnotationOfType
@PublicAPI(usage=ACCESS) public static <A extends java.lang.annotation.Annotation> Function<JavaAnnotation<?>,A> toAnnotationOfType(java.lang.Class<A> type)
-