Uses of Class
org.bson.BsonNumber
-
Packages that use BsonNumber Package Description org.bson Contains the base BSON classes. -
-
Uses of BsonNumber in org.bson
Subclasses of BsonNumber in org.bson Modifier and Type Class 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.Methods in org.bson that return BsonNumber Modifier and Type Method Description BsonNumber
BsonValue. asNumber()
Gets this value as a BsonNumber if it is one, otherwise throws exceptionBsonNumber
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.Methods in org.bson with parameters of type BsonNumber Modifier and Type Method Description BsonNumber
BsonDocument. getNumber(Object key, BsonNumber defaultValue)
If the document does not contain the given key, return the given default value.
-