public final class BsonField
extends java.lang.Object
Aggregates.group(Object, BsonField...)
Constructor and Description |
---|
BsonField(java.lang.String name,
Bson value)
Construct an instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the field name
|
Bson |
getValue()
Gets the field value
|
java.lang.String |
toString() |
public BsonField(java.lang.String name, Bson value)
name
- the field namevalue
- the field valuepublic java.lang.String getName()
public Bson getValue()
public java.lang.String toString()
toString
in class java.lang.Object