org.qi4j.api.util

## Class Annotations

- java.lang.Object
- - org.qi4j.api.util.Annotations

-     public final class Annotations
      extends Object

  Useful methods for handling Annotations.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Function<Type,Iterable<Annotation>>` | `ANNOTATIONS_OF`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Annotations()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends Annotation> T` | `annotationOn(Type type, Class<T> annotationType)`
    `static Iterable<Annotation>` | `findAccessorAndTypeAnnotationsIn(AccessibleObject accessor)`
    `static Specification<AnnotatedElement>` | `hasAnnotation(Class<? extends Annotation> annotationType)`
    `static Specification<Annotation>` | `isType(Class<? extends Annotation> annotationType)`
    `static Function<Annotation,Class<? extends Annotation>>` | `type()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### ANNOTATIONS_OF

          public static Function<Type,Iterable<Annotation>> ANNOTATIONS_OF

  - ### Constructor Detail

    - #### Annotations

          public Annotations()

  - ### Method Detail

    - #### hasAnnotation

          public static Specification<AnnotatedElement> hasAnnotation(Class<? extends Annotation> annotationType)

    - #### type

          public static Function<Annotation,Class<? extends Annotation>> type()

    - #### isType

          public static Specification<Annotation> isType(Class<? extends Annotation> annotationType)

    - #### annotationOn

          public static <T extends Annotation> T annotationOn(Type type,
                                              Class<T> annotationType)

    - #### findAccessorAndTypeAnnotationsIn

          public static Iterable<Annotation> findAccessorAndTypeAnnotationsIn(AccessibleObject accessor)