Class ConditionalOperators.Cond

All Implemented Interfaces:
AggregationExpression, MongoExpression
Enclosing class:

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.
Mark Paluch, Christoph Strobl
See Also: