Interface Type.AnnotatedElementMatcher<T extends Annotation>

Type Parameters:
T - is the type of annotation that is expected.
Enclosing class:
Type
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 static interface Type.AnnotatedElementMatcher<T extends Annotation>
Matcher for methods or fields based on annotation properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(T annotation)
     
  • Method Details

    • matches

      boolean matches(T annotation)
      Parameters:
      annotation - the annotation found.
      Returns:
      true if the annotation matches the condition, false else.