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 base class for predicates.
Since:
4.5.0-M3
  • Constructor Details

  • 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