static class Annotations.AnnotationChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> |
annotationTypes |
(package private) com.google.common.cache.LoadingCache<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Boolean> |
cache |
private com.google.common.cache.CacheLoader<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Boolean> |
hasAnnotations
Returns true if the given class has one of the desired annotations.
|
Constructor and Description |
---|
AnnotationChecker(java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationTypes)
Constructs a new checker that looks for annotations of the given types.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
hasAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> annotated)
Returns true if the given type has one of the desired annotations.
|
private final java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationTypes
private com.google.common.cache.CacheLoader<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Boolean> hasAnnotations
final com.google.common.cache.LoadingCache<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Boolean> cache