Package | Description |
---|---|
org.bson |
This package contains bson classes required for the driver
|
Modifier and Type | Class and Description |
---|---|
class |
BsonDouble
A representation of the BSON Double type.
|
class |
BsonInt32
A representation of the BSON Int32 type.
|
class |
BsonInt64
A representation of the BSON Int64 type.
|
Modifier and Type | Method and Description |
---|---|
BsonNumber |
BsonValue.asNumber()
Gets this value as a BsonNumber if it is one, otherwise throws exception
|
BsonNumber |
BsonDocument.getNumber(Object key)
Gets the value of the key if it is a BsonNumber, or throws if not.
|
BsonNumber |
BsonDocument.getNumber(Object key,
BsonNumber defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
BsonNumber |
BsonDocument.getNumber(Object key,
BsonNumber defaultValue)
If the document does not contain the given key, return the given default value.
|
Copyright © 2016. All Rights Reserved.