Class Annotations

java.lang.Object
io.helidon.common.types.Annotations

public final class Annotations extends Object
Annotation utilities.
  • Field Details

    • OVERRIDE

      public static final Annotation OVERRIDE
      Override annotation.
    • DEPRECATED

      public static final 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 name
      coll - 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 type
      coll - the collection to search
      Returns:
      the result of the find
    • findFirst

      public static <T extends Annotation> Optional<T> findFirst(String annoTypeName, Collection<T> coll)
      Attempts to find the annotation in the provided collection.
      Type Parameters:
      T - annotation type
      Parameters:
      annoTypeName - the annotation type name
      coll - the collection to search
      Returns:
      the result of the find