java.lang.Object
io.helidon.common.types.Annotations
Annotation utilities.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Annotation
Deprecated annotation.static final Annotation
Override annotation. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
Optional<T> findFirst
(TypeName annoTypeName, Collection<T> coll) Attempts to find the annotation in the provided collection.static <T extends Annotation>
Optional<T> findFirst
(Class<? extends Annotation> annoType, Collection<T> coll) Attempts to find the annotation in the provided collection.static <T extends Annotation>
Optional<T> findFirst
(String annoTypeName, Collection<T> coll) Attempts to find the annotation in the provided collection.
-
Field Details
-
OVERRIDE
Override annotation. -
DEPRECATED
Deprecated annotation.
-
-
Method Details
-
findFirst
public static <T extends Annotation> Optional<T> findFirst(TypeName annoTypeName, Collection<T> coll) Attempts to find the annotation in the provided collection.- Type Parameters:
T
- annotation type- Parameters:
annoTypeName
- the annotation type namecoll
- the collection to search- Returns:
- the result of the find
-
findFirst
public static <T extends Annotation> Optional<T> findFirst(Class<? extends Annotation> annoType, Collection<T> coll) Attempts to find the annotation in the provided collection.- Type Parameters:
T
- annotation type- Parameters:
annoType
- the annotation typecoll
- the collection to search- Returns:
- the result of the find
-
findFirst
Attempts to find the annotation in the provided collection.- Type Parameters:
T
- annotation type- Parameters:
annoTypeName
- the annotation type namecoll
- the collection to search- Returns:
- the result of the find
-