Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
Modifier and Type | Class and Description |
---|---|
class |
BsonDecimal128
A representation of the BSON Decimal128 type.
|
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 © 2018. All rights reserved.