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