Package tech.ydb.yoj.util.lang
Class Annotations
java.lang.Object
tech.ydb.yoj.util.lang.Annotations
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
Afind(Class<A> annotation, AnnotatedElement component) Find first annotation that matches the class in parameter
-
Method Details
-
find
@Nullable public static <A extends Annotation> A find(Class<A> annotation, @Nonnull AnnotatedElement component) Find first annotation that matches the class in parameter- Parameters:
annotation- - to look forcomponent- - entry point to search- Returns:
- annotation found or null
-