Class TestClassPredicate

java.lang.Object
org.antublue.test.engine.internal.predicate.RegexPredicate<Class<?>>
org.antublue.test.engine.internal.predicate.TestClassPredicate
All Implemented Interfaces:
Predicate<Class<?>>

public final class TestClassPredicate extends RegexPredicate<Class<?>>
Class to implement a Predicate that matches a classname
  • Method Details

    • test

      public boolean test(Class<?> clazz)
      Method to test the Predicate
      Specified by:
      test in interface Predicate<Class<?>>
      Specified by:
      test in class RegexPredicate<Class<?>>
      Parameters:
      clazz - the input argument
      Returns:
      whether to accept the Class
    • of

      public static TestClassPredicate of(String regex)
      Method to create an instance of a TestClassPredicate
      Parameters:
      regex - regex
      Returns:
      the return value