| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
Predicate.Function<T>
A functional interface for the containing delegate type. 
 | 
| Constructor and Description | 
|---|
Predicate()
Creates a new instance of this delegate. 
 | 
Predicate(Class<?> targetClass,
         String methodName,
         Class<?>... methodParameterClasses)
Initializes a delegate that will invoke a static method on a class. 
 | 
Predicate(Object targetObject,
         String methodName,
         Class<?>... methodParameterClasses)
Initializes a delegate that will invoke an instance method on a class instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract boolean | 
invoke(T obj)
Represents a method that defines a set of criteria and determines whether the
 specified object meets those criteria. 
 | 
static <T> Predicate<T> | 
of(Predicate.Function<T> f)
Create a delegate for the given interface. 
 | 
static <T> Predicate<T> | 
of(Predicate.Function<T> f,
  Class<?> targetClass,
  String methodName,
  Class<?>... methodParameterClasses)
Create a delegate for the given interface. 
 | 
static <T> Predicate<T> | 
of(Predicate.Function<T> f,
  Object targetObject,
  String methodName,
  Class<?>... methodParameterClasses)
Create a delegate for the given interface. 
 | 
boolean | 
test(T t)
Evaluates this predicate on the given argument. 
 | 
dynamicInvoke, equals, getMethod, getTarget, hashCodepublic Predicate()
public Predicate(@Nonnull Object targetObject, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
targetObject - The class instance on which the delegate will invoke the method.methodName - The name of the instance method.methodParameterClasses - The type of the parameters of the instance method.public Predicate(@Nonnull Class<?> targetClass, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
targetClass - The class that defines the method.methodName - The name of the static method.methodParameterClasses - The type of the parameters of the static method.public abstract boolean invoke(T obj)
public final boolean test(T t)
java.util.function.Predicate@Nonnull public static <T> Predicate<T> of(@Nonnull Predicate.Function<T> f)
f - The function which will be invoked.@Nonnull public static <T> Predicate<T> of(@Nonnull Predicate.Function<T> f, @Nonnull Object targetObject, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
f - The function which will be invoked.targetObject - The class instance on which the delegate will invoke the method.methodName - The name of the instance method.methodParameterClasses - The type of the parameters of the instance method.@Nonnull public static <T> Predicate<T> of(@Nonnull Predicate.Function<T> f, @Nonnull Class<?> targetClass, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
f - The function which will be invoked.targetClass - The class that defines the method.methodName - The name of the static method.methodParameterClasses - The type of the parameters of the static method.