Interface Predicate

All Known Implementing Classes:
AndPredicate, BetweenExpression, EqualExpression, ExistsExpression, GreaterEqualExpression, GreaterThanExpression, InExpression, IsEmptyExpression, IsNullExpression, LessEqualExpression, LessThanExpression, LikeExpression, LogicalPredicate, MemberOfExpression, NotEqualExpression, OrPredicate

public interface Predicate
Interface used to define compound predicates.
  • Method Summary

    Modifier and Type
    Method
    Description
    and(Predicate predicate)
    Creates an AND of the predicate with the argument.
    not()
    Creates a negation of the predicate with the argument.
    or(Predicate predicate)
    Creates an OR of the predicate with the argument.
  • Method Details

    • and

      Predicate and(Predicate predicate)
      Creates an AND of the predicate with the argument.
      Parameters:
      predicate - - A simple or compound predicate
      Returns:
      the predicate that is the AND of the original simple or compound predicate and the argument.
    • or

      Predicate or(Predicate predicate)
      Creates an OR of the predicate with the argument.
      Parameters:
      predicate - - A simple or compound predicate
      Returns:
      the predicate that is the OR of the original simple or compound predicate and the argument.
    • not

      Predicate not()
      Creates a negation of the predicate with the argument.
      Returns:
      the predicate that is the negation of the original simple or compound predicate.