Class ComparisonPredicates
java.lang.Object
io.github.torand.fastersql.predicate.comparison.ComparisonPredicates
Provides factory methods for comparison predicates.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Betweenbetween(LeftOperand left, Expression lowerBound, Expression upperBound) Creates a between predicate taking expressions as lower and upper bound operands.static Eqeq(LeftOperand left, Expression right) Creates an equivalence predicate taking an expression as right operand.static Gege(LeftOperand left, Expression right) Creates a greater than or equal predicate taking an expression as right operand.static Gtgt(LeftOperand left, Expression right) Creates a greater than predicate taking an expression as right operand.static Lele(LeftOperand left, Expression right) Creates a less than or equal predicate taking an expression as right operand.static Ltlt(LeftOperand left, Expression right) Creates a less than predicate taking an expression as right operand.static Nene(LeftOperand left, Expression right) Creates a non-equivalence predicate taking an expression as right operand.
-
Method Details
-
eq
Creates an equivalence predicate taking an expression as right operand.- Parameters:
left- the left operand.right- the right operand.- Returns:
- the predicate.
-
ne
Creates a non-equivalence predicate taking an expression as right operand.- Parameters:
left- the left operand.right- the right operand.- Returns:
- the predicate.
-
lt
Creates a less than predicate taking an expression as right operand.- Parameters:
left- the left operand.right- the right operand.- Returns:
- the predicate.
-
le
Creates a less than or equal predicate taking an expression as right operand.- Parameters:
left- the left operand.right- the right operand.- Returns:
- the predicate.
-
gt
Creates a greater than predicate taking an expression as right operand.- Parameters:
left- the left operand.right- the right operand.- Returns:
- the predicate.
-
ge
Creates a greater than or equal predicate taking an expression as right operand.- Parameters:
left- the left operand.right- the right operand.- Returns:
- the predicate.
-
between
Creates a between predicate taking expressions as lower and upper bound operands.- Parameters:
left- the left operand.lowerBound- the lower bound operand.upperBound- the upper bound operand.- Returns:
- the predicate.
-