Class AnnotationSubset


  • @OpenApiAll
    public final class AnnotationSubset
    extends java.lang.Object
    Defines a subset of registered annotations. Used to filter annotations when retrieving them from the AnnotationManager AnnotationSubset.ALL means any registered annotation.
    • Method Detail

      • includingOnly

        public static AnnotationSubset includingOnly​(java.util.Collection<AnnotationCategory> includedCategories,
                                                     @CheckForNull
                                                     java.util.Comparator<Annotation> comparator)
        Returns:
        AnnotationSubset for any annotation group with the given scope
      • containsCategory

        public boolean containsCategory​(AnnotationCategory category)
        Returns:
        true if the given annotation category belongs to this subset
      • getIncludedCategories

        public java.util.Collection<AnnotationCategory> getIncludedCategories()
        If included categories are empty, then every possible category is contained by this subset, except the excluded ones.
      • getExcludedCategories

        public java.util.Collection<AnnotationCategory> getExcludedCategories()
        Excluded categories, that are strictly not contained by this subset If category is both included and excluded, it is still not contained by this subset
      • getComparator

        @CheckForNull
        public java.util.Comparator<Annotation> getComparator()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object