@Stability.Internal public class CbAnnotations extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Annotation> |
findAnnotation(AnnotatedElement element,
Class<T> annotationClass)
Searches the element for an annotation of the given class and returns the first match.
|
static <T extends Annotation> |
findAnnotation(Annotation annotation,
Class<T> annotationClass)
Searches the given annotation and any meta-annotations, returning the first annotation of the given class.
|
public static <T extends Annotation> T findAnnotation(AnnotatedElement element, Class<T> annotationClass)
element - the element to searchannotationClass - the type of annotation to look forpublic static <T extends Annotation> T findAnnotation(Annotation annotation, Class<T> annotationClass)
annotation - the root annotation to searchannotationClass - the type of annotation to look forCopyright © 2024 Couchbase, Inc.. All rights reserved.