Class AnnotationList.ForLoadedAnnotations

All Implemented Interfaces:
Iterable<AnnotationDescription>, Collection<AnnotationDescription>, List<AnnotationDescription>, AnnotationList, FilterableList<AnnotationDescription,AnnotationList>
Enclosing interface:
AnnotationList

public static class AnnotationList.ForLoadedAnnotations extends AnnotationList.AbstractBase
Describes an array of loaded Annotations as an annotation list.
  • Field Details

    • annotations

      private final List<? extends Annotation> annotations
      The represented annotations.
  • Constructor Details

    • ForLoadedAnnotations

      public ForLoadedAnnotations(Annotation... annotation)
      Creates a new list of loaded annotations.
      Parameters:
      annotation - The represented annotations.
    • ForLoadedAnnotations

      public ForLoadedAnnotations(List<? extends Annotation> annotations)
      Creates a new list of loaded annotations. Any null entries are filtered out as the JVM's reflection API can return null for annotations whose annotation type is not available on the class path.
      Parameters:
      annotations - The represented annotations.
  • Method Details