Class AnnotationFieldPredicate

java.lang.Object
org.antublue.test.engine.internal.predicate.AnnotationFieldPredicate
All Implemented Interfaces:
Predicate<Field>

public class AnnotationFieldPredicate extends Object implements Predicate<Field>
Class to implement a predicate to match a test field
  • Method Details

    • test

      public boolean test(Field field)
      Specified by:
      test in interface Predicate<Field>
    • of

      public static AnnotationFieldPredicate of(Class<? extends Annotation> annotation)
      Method to get an AnnotationFieldPredicate for an Annotation
      Parameters:
      annotation - annotation
      Returns:
      an AnnotationFieldPredicate for an Annotation
    • of

      @SafeVarargs public static AnnotationFieldPredicate of(Class<? extends Annotation>... annotations)
      Method to get an AnnotationFieldPredicate for an Annotation
      Parameters:
      annotations - annotations
      Returns:
      an AnnotationFieldPredicate for an Annotation
    • of

      public static AnnotationFieldPredicate of(List<Class<? extends Annotation>> annotations)
      Method to get an AnnotationFieldPredicate for an Annotation
      Parameters:
      annotations - annotations
      Returns:
      an AnnotationFieldPredicate for an Annotation