Bson Document
Construct an empty document with the specified initial capacity.
Parameters
initial Capacity
the initial capacity
Construct a new instance with a single key value pair
Parameters
key
the key
value
the value
Construct a new instance with the given list BsonElements
Parameters
bson Elements
the initial list of BsonElements
Construct a new instance with the varargs of key value pairs
Parameters
pairs
the initial pairs of values
constructs the bson document with the initial values, defaults to an empty document
Parameters
initial
the initial values