@ThreadSafe public class AnnotationUsageCache extends Object implements Serializable
AbstractNotifyingCache
because it would need a Class<?> as a key and this would
be a hard wired reference.| Constructor and Description |
|---|
AnnotationUsageCache(Class<? extends Annotation> aAnnotationClass)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
Class<? extends Annotation> |
getAnnotationClass() |
boolean |
hasAnnotation(Class<?> aClass) |
boolean |
hasAnnotation(Object aObject) |
void |
setAnnotation(Class<?> aClass,
boolean bHasAnnotation) |
String |
toString() |
public AnnotationUsageCache(@Nonnull Class<? extends Annotation> aAnnotationClass)
aAnnotationClass - The annotation class to store the existence of. It must have the
RetentionPolicy.RUNTIME to be usable within this class!@Nonnull public final Class<? extends Annotation> getAnnotationClass()
null.public void clearCache()
Copyright © 2014–2016 Philip Helger. All rights reserved.