Class AnnotationInfoList

    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AnnotationInfoList directOnly()
      returns the list of direct annotations, excluding meta-annotations.
      boolean equals​(java.lang.Object obj)  
      AnnotationInfoList filter​(AnnotationInfoList.AnnotationInfoFilter filter)
      Find the subset of the AnnotationInfo objects in this list for which the given filter predicate is true.
      AnnotationInfoList getRepeatable​(java.lang.String name)
      Get the Repeatable annotation with the given name, or the empty list if none found.
      int hashCode()  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Method Detail

      • directOnly

        public AnnotationInfoList directOnly()
        returns the list of direct annotations, excluding meta-annotations. If this AnnotationInfoList consists of class annotations, i.e. if it was produced using `ClassInfo#getAnnotationInfo()`, then the returned list also excludes annotations inherited from a superclass or implemented interface that was meta-annotated with @Inherited.
        Returns:
        The list of directly-related annotations.
      • getRepeatable

        public AnnotationInfoList getRepeatable​(java.lang.String name)
        Get the Repeatable annotation with the given name, or the empty list if none found.
        Parameters:
        name - The name to search for.
        Returns:
        The list of annotations with the given name, or the empty list if none found.
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<AnnotationInfo>
        Specified by:
        equals in interface java.util.List<AnnotationInfo>
        Overrides:
        equals in class java.util.ArrayList<AnnotationInfo>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<AnnotationInfo>
        Specified by:
        hashCode in interface java.util.List<AnnotationInfo>
        Overrides:
        hashCode in class java.util.ArrayList<AnnotationInfo>