abstract class AbstractByteBufBsonDocument extends BsonDocument
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
AbstractByteBufBsonDocument.Finder<T> |
Modifier and Type | Field and Description |
---|---|
private static CodecRegistry |
REGISTRY |
private static long |
serialVersionUID |
Constructor and Description |
---|
AbstractByteBufBsonDocument() |
Modifier and Type | Method and Description |
---|---|
BsonDocument |
append(java.lang.String key,
BsonValue value)
Put the given key and value into this document, and return the document.
|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
private BsonValue |
deserializeBsonValue(BsonReader bsonReader) |
java.util.Set<java.util.Map.Entry<java.lang.String,BsonValue>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
(package private) abstract <T> T |
findInDocument(AbstractByteBufBsonDocument.Finder<T> finder) |
BsonValue |
get(java.lang.Object key) |
java.lang.String |
getFirstKey()
Gets the first key in this document, or null if the document is empty.
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
BsonValue |
put(java.lang.String key,
BsonValue value) |
void |
putAll(java.util.Map<? extends java.lang.String,? extends BsonValue> m) |
BsonValue |
remove(java.lang.Object key) |
int |
size() |
(package private) abstract BsonDocument |
toBsonDocument() |
java.util.Collection<BsonValue> |
values() |
(package private) java.lang.Object |
writeReplace() |
clone, get, getArray, getArray, getBinary, getBinary, getBoolean, getBoolean, getBsonType, getDateTime, getDateTime, getDecimal128, getDecimal128, getDocument, getDocument, getDouble, getDouble, getInt32, getInt32, getInt64, getInt64, getNumber, getNumber, getObjectId, getObjectId, getRegularExpression, getRegularExpression, getString, getString, getTimestamp, getTimestamp, isArray, isBinary, isBoolean, isDateTime, isDecimal128, isDocument, isDouble, isInt32, isInt64, isNull, isNumber, isObjectId, isString, isTimestamp, parse, toBsonDocument, toJson, toJson, toString
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestamp
private static final long serialVersionUID
private static final CodecRegistry REGISTRY
public void clear()
clear
in interface java.util.Map<java.lang.String,BsonValue>
clear
in class BsonDocument
public BsonValue put(java.lang.String key, BsonValue value)
put
in interface java.util.Map<java.lang.String,BsonValue>
put
in class BsonDocument
public BsonDocument append(java.lang.String key, BsonValue value)
BsonDocument
append
in class BsonDocument
key
- the keyvalue
- the valuepublic void putAll(java.util.Map<? extends java.lang.String,? extends BsonValue> m)
putAll
in interface java.util.Map<java.lang.String,BsonValue>
putAll
in class BsonDocument
public BsonValue remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,BsonValue>
remove
in class BsonDocument
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,BsonValue>
isEmpty
in class BsonDocument
public int size()
size
in interface java.util.Map<java.lang.String,BsonValue>
size
in class BsonDocument
public java.util.Set<java.util.Map.Entry<java.lang.String,BsonValue>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,BsonValue>
entrySet
in class BsonDocument
public java.util.Collection<BsonValue> values()
values
in interface java.util.Map<java.lang.String,BsonValue>
values
in class BsonDocument
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,BsonValue>
keySet
in class BsonDocument
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,BsonValue>
containsKey
in class BsonDocument
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,BsonValue>
containsValue
in class BsonDocument
public BsonValue get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,BsonValue>
get
in class BsonDocument
public java.lang.String getFirstKey()
getFirstKey
in class BsonDocument
abstract <T> T findInDocument(AbstractByteBufBsonDocument.Finder<T> finder)
abstract BsonDocument toBsonDocument()
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map<java.lang.String,BsonValue>
equals
in class BsonDocument
public int hashCode()
hashCode
in interface java.util.Map<java.lang.String,BsonValue>
hashCode
in class BsonDocument
private BsonValue deserializeBsonValue(BsonReader bsonReader)
java.lang.Object writeReplace()