Interface AnnotationFilter.Singular<A extends Annotation>

  • Type Parameters:
    A - Annotation type to check.
    All Superinterfaces:
    AnnotationFilter
    Enclosing interface:
    AnnotationFilter

    public static interface AnnotationFilter.Singular<A extends Annotation>
    extends AnnotationFilter
    Concretization of filters that only match when there's a specified annotation present on element.
    • Method Detail

      • andMatching

        AnnotationFilter.Singular<A> andMatching​(Predicate<? super A> addedPredicate)
        Adds check on annotation that is present.
        Parameters:
        addedPredicate - predicate that must be matched on annotation for resulting filter to match
        Returns:
        filter that matches the same elements, but with additional check on specific annotation