public class Equals extends MongoCriteria
| Constructor and Description |
|---|
Equals(MongoProperty property,
Object expression)
Creates an equal instance that requires the given property to equal the given
expression. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject representing the criterium.
|
and, or, toStringpublic Equals(MongoProperty property, Object expression)
expression. The
expression may be either a fixed value, or another MongoProperty.property - The property to evaluateexpression - The expression to compare the property withpublic com.mongodb.DBObject asMongoObject()
MongoCriteriaasMongoObject in class MongoCriteriaCopyright © 2010-2014. All Rights Reserved.