DATAMONGO-989 - MatchOperation should accept CriteriaDefinition.
Added additional constructor that accepts CriteriaDefinition to not force clients to extends Criteria. We deprecated the original constructor and delegate to the new one. We keep the old one to remain binary compatible.
Original pull request: #206.
Assert.notNull(criteria,"Criteria must not be null!");
this.criteria=criteria;
Assert.notNull(criteriaDefinition,"Criteria must not be null!");
this.criteriaDefinition=criteriaDefinition;
}
/*
@ -51,6 +64,6 @@ public class MatchOperation implements AggregationOperation {
@@ -51,6 +64,6 @@ public class MatchOperation implements AggregationOperation {