public class MongoConstraint extends Constraint
MongoQuery
and most probably generated by
MongoFilterFactory
.QueryBuilder.FILTERS
Modifier and Type | Field and Description |
---|---|
protected String |
key |
protected Object |
object |
Constructor and Description |
---|
MongoConstraint(String key,
Object object)
Creates a new constraint for the given field.
|
Modifier and Type | Method and Description |
---|---|
void |
asString(StringBuilder builder)
Creates a string representation of this constraint.
|
String |
getKey() |
Object |
getObject() |
toString
public void asString(StringBuilder builder)
Constraint
asString
in class Constraint
builder
- the target to write the string representation topublic String getKey()
public Object getObject()
Copyright © 2018. All rights reserved.