Class CompoundPredicates

java.lang.Object
io.github.torand.fastersql.predicate.compound.CompoundPredicates

public final class CompoundPredicates extends Object
Provides factory methods for compound predicates.
  • Method Summary

    Modifier and Type
    Method
    Description
    static And
    and(Predicate... operands)
    Creates a compound predicate using the boolean operator AND on specified predicate operands.
    static Not
    not(Predicate operand)
    Creates a compound predicate using the boolean negation operator on specified predicate operand.
    static Or
    or(Predicate... operands)
    Creates a compound predicate using the boolean operator OR on specified predicate operands.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • and

      public static And and(Predicate... operands)
      Creates a compound predicate using the boolean operator AND on specified predicate operands.
      Parameters:
      operands - the predicate operands.
      Returns:
      the compound predicate.
    • or

      public static Or or(Predicate... operands)
      Creates a compound predicate using the boolean operator OR on specified predicate operands.
      Parameters:
      operands - the predicate operands.
      Returns:
      the compound predicate.
    • not

      public static Not not(Predicate operand)
      Creates a compound predicate using the boolean negation operator on specified predicate operand.
      Parameters:
      operand - the predicate operand.
      Returns:
      the compound predicate.