public interface MutableDocument extends Document
Document
used when building a MutableBsonObject.Document.Field, Document.ValueTransformer
Modifier and Type | Method and Description |
---|---|
Object |
put(String name,
Object value)
Sets a name/value pair in this object.
|
void |
putAll(Document object)
Sets on this object all name/value pairs from the supplied object.
|
void |
putAll(Map<? extends String,? extends Object> map)
Sets on this object all key/value pairs from the supplied map.
|
Object |
remove(String name)
Removes from this object the name/value pair with the given name.
|
void |
removeAll()
Remove all fields from this document.
|
clone, containsAll, containsField, fields, get, getArray, getBinary, getBoolean, getBoolean, getCode, getCodeWithScope, getDocument, getDouble, getDouble, getInteger, getInteger, getLong, getLong, getMaxKey, getMinKey, getNumber, getNumber, getObjectId, getPattern, getString, getString, getSymbol, getType, getUuid, getUuid, isEmpty, isNull, isNullOrMissing, keySet, size, toMap, with, with, with, withVariablesReplaced, withVariablesReplacedWithSystemProperties
Object put(String name, Object value)
name
- The name; may not be nullvalue
- The value; may be nullvoid putAll(Document object)
object
- the object containing the name/value pairs to be set on this objectvoid putAll(Map<? extends String,? extends Object> map)
map
- the map containing the name/value pairs to be set on this objectObject remove(String name)
name
- The name of the pair to removevoid removeAll()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.