Interface AnnotationFilter

  • All Known Subinterfaces:
    AnnotationFilter.Singular<A>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface AnnotationFilter
    Predicate-like interface for annotations on AnnotatedElement.
    • Method Detail

      • matches

        boolean matches​(AnnotatedElement element)
        Function method that checks element.
        Parameters:
        element - element to test
        Returns:
        if element matches filter
      • and

        default AnnotationFilter and​(AnnotationFilter other)
        Creates conjunction between this and provided filter.
        Parameters:
        other - additional filter to be checked
        Returns:
        filter that matches only when this and other filter matches
      • or

        default AnnotationFilter or​(AnnotationFilter other)
        Creates disjunction between this and provided filter.
        Parameters:
        other - additional filter to be checked
        Returns:
        filter that matches whenever this or other filter matches
      • negated

        default AnnotationFilter negated()
        Creates filter negation.
        Returns:
        filter that matches only when this filter doesn't