public class And extends MongoCriteria
| Constructor and Description |
|---|
And(MongoCriteria criteria1,
MongoCriteria criteria2)
Returns a criterium that requires both
criteria1 and criteria2 to be
true. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject representing the criterium.
|
and, or, toStringpublic And(MongoCriteria criteria1, MongoCriteria criteria2)
criteria1 and criteria2 to be
true.criteria1 - One of the criteria to be evaludatedcriteria2 - One of the criteria to be evaludatedpublic com.mongodb.DBObject asMongoObject()
MongoCriteriaasMongoObject in class MongoCriteriaCopyright © 2010-2014. All Rights Reserved.