Interface Predicate

All Known Implementing Classes:
DeclaringTypePredicate, DepthPredicate, IsMandatoryPredicate, IsNodePredicate, NamePredicate, NodeTypePredicate, NtFilePredicate, PathPredicate, RowPredicate

public interface Predicate
Interface for object predicates, i.e. functions that evaluate a given object to a boolean value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Predicate
    Constant predicate that returns false for all objects.
    static final Predicate
    Constant predicate that returns true for all objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    evaluate(Object object)
    Evaluates the predicate for the given object.
  • Field Details

    • TRUE

      static final Predicate TRUE
      Constant predicate that returns true for all objects.
    • FALSE

      static final Predicate FALSE
      Constant predicate that returns false for all objects.
  • Method Details

    • evaluate

      boolean evaluate(Object object)
      Evaluates the predicate for the given object.
      Parameters:
      object - some object
      Returns:
      predicate result