Class BooleanOperators
java.lang.Object
org.springframework.data.mongodb.core.aggregation.BooleanOperators
Gateway to boolean expressions that evaluate their argument expressions as booleans and return a boolean
as the result.
- Since:
- 1.10
- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AggregationExpression
for$and
.static class
static class
AggregationExpression
for$not
.static class
AggregationExpression
for$or
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanOperators.Not
Creates newAggregationExpression
that evaluates the boolean value of the referenced field and returns the opposite boolean value.static BooleanOperators.Not
not
(AggregationExpression expression) Creates newAggregationExpression
that evaluates the boolean value ofAggregationExpression
result and returns the opposite boolean value.Take the array referenced by given fieldReference.valueOf
(AggregationExpression fieldReference) Take the value resulting of the givenAggregationExpression
.
-
Constructor Details
-
BooleanOperators
public BooleanOperators()
-
-
Method Details
-
valueOf
Take the array referenced by given fieldReference.- Parameters:
fieldReference
- must not be null.- Returns:
- new instance of
BooleanOperators.BooleanOperatorFactory
.
-
valueOf
Take the value resulting of the givenAggregationExpression
.- Parameters:
fieldReference
- must not be null.- Returns:
- new instance of
BooleanOperators.BooleanOperatorFactory
.
-
not
Creates newAggregationExpression
that evaluates the boolean value of the referenced field and returns the opposite boolean value.- Parameters:
fieldReference
- must not be null.- Returns:
- new instance of
BooleanOperators.Not
.
-
not
Creates newAggregationExpression
that evaluates the boolean value ofAggregationExpression
result and returns the opposite boolean value.- Parameters:
expression
- must not be null.- Returns:
- new instance of
BooleanOperators.Not
.
-