Package org.apache.commons.collections4.functors

# Class AbstractPredicate<T>

java.lang.Object
org.apache.commons.collections4.functors.AbstractPredicate<T>

Type Parameters:
  `T` - The type of the input to the predicate.

All Implemented Interfaces:
  `Predicate<T>`, `Predicate<T>`

Direct Known Subclasses:
  `AbstractQuantifierPredicate`, `AndPredicate`, `ComparatorPredicate`, `EqualPredicate`, `ExceptionPredicate`, `FalsePredicate`, `IdentityPredicate`, `InstanceofPredicate`, `NotNullPredicate`, `NotPredicate`, `NullIsExceptionPredicate`, `NullIsFalsePredicate`, `NullIsTruePredicate`, `NullPredicate`, `OrPredicate`, `TransformedPredicate`, `TransformerPredicate`, `TruePredicate`, `UniquePredicate`

public abstract class AbstractPredicate<T> extends Object implements Predicate<T>
Abstract class for predicates.

Since:
  4.5.0-M3

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AbstractPredicate()`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `evaluate(T object)`
  Use the specified parameter to perform a test that returns true or false.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.function.Predicate

  `and, negate, or`

  ### Methods inherited from interface org.apache.commons.collections4.Predicate

  `test`

- ## Constructor Details

  - ### AbstractPredicate

    public AbstractPredicate()
    Constructs a new instance.

- ## Method Details

  - ### evaluate

    public boolean evaluate(T object)
    Description copied from interface: `Predicate`
    Use the specified parameter to perform a test that returns true or false.
    Specified by:
      `evaluate` in interface `Predicate<T>`
    Parameters:
      `object` - The object to evaluate, should not be changed.
    Returns:
      true or false.