Module spring.data.mongodb
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
Nested ClassesModifier and TypeClassDescriptionstatic classAggregationExpressionfor$and.static classstatic classAggregationExpressionfor$not.static classAggregationExpressionfor$or. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanOperators.NotCreates newAggregationExpressionthat evaluates the boolean value of the referenced field and returns the opposite boolean value.static BooleanOperators.Notnot(AggregationExpression expression) Creates newAggregationExpressionthat evaluates the boolean value ofAggregationExpressionresult 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 newAggregationExpressionthat 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 newAggregationExpressionthat evaluates the boolean value ofAggregationExpressionresult and returns the opposite boolean value.- Parameters:
expression- must not be null.- Returns:
- new instance of
BooleanOperators.Not.
-