Class ConditionalOperators.Cond

java.lang.Object
org.springframework.data.mongodb.core.aggregation.ConditionalOperators.Cond
All Implemented Interfaces:
AggregationExpression, MongoExpression
Enclosing class:
ConditionalOperators

public static class ConditionalOperators.Cond extends Object implements AggregationExpression
Encapsulates the aggregation framework $cond operator. A ConditionalOperators.Cond allows nested conditions if-then[if-then-else]-else using Field, CriteriaDefinition, AggregationExpression or a custom condition. Replacement values can be either field references, expressions, values of simple MongoDB types or values that can be converted to a simple MongoDB type.
Author:
Mark Paluch, Christoph Strobl
See Also: