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, toString
public 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()
MongoCriteria
asMongoObject
in class MongoCriteria
Copyright © 2010-2014. All Rights Reserved.