Package com.mongodb.client.model
Class BsonField
- java.lang.Object
-
- com.mongodb.client.model.BsonField
-
public final class BsonField extends Object
A representation of a BSON document field whose value is another BSON document.- Since:
- 3.1
- See Also:
Aggregates.group(Object, BsonField...)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
Gets the field nameorg.bson.conversions.Bson
getValue()
Gets the field valueint
hashCode()
String
toString()
-
-
-
Constructor Detail
-
BsonField
public BsonField(String name, org.bson.conversions.Bson value)
Construct an instance- Parameters:
name
- the field namevalue
- the field value
-
-
Method Detail
-
getName
public String getName()
Gets the field name- Returns:
- the field name
-
getValue
public org.bson.conversions.Bson getValue()
Gets the field value- Returns:
- the field value
-
-