java.lang.Object | |
↳ | com.mongodb.BasicDBObjectBuilder |
utility for building complex objects example: BasicDBObjectBuilder.start().add( "name" , "eliot" ).add( "number" , 17 ).get()
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
creates an empty object
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
same as appends
| |||||||||||
appends the key/value to the active object
| |||||||||||
gets the base object
| |||||||||||
returns true if no key/value was inserted into base object
| |||||||||||
pops the active object, which means that the parent object becomes active
| |||||||||||
creates an new empty object and inserts it into the current object with the given key.
| |||||||||||
Creates an empty object
| |||||||||||
creates an object with the given key/value
| |||||||||||
Creates an object builder from an existing map.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
creates an empty object
appends the key/value to the active object
returns true if no key/value was inserted into base object
pops the active object, which means that the parent object becomes active
creates an new empty object and inserts it into the current object with the given key. The new child object becomes the active one.
creates an object with the given key/value
k | The field name |
---|---|
val | The value |
Creates an object builder from an existing map.
m | map to use |
---|