Package | Description |
---|---|
org.bson |
This package contains bson classes required for the driver
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Method and Description |
---|---|
BsonInt32 |
BsonValue.asInt32()
Gets this value as a BsonString if it is one, otherwise throws exception
|
BsonInt32 |
BsonDocument.getInt32(Object key)
Gets the value of the key if it is a BsonInt32, or throws if not.
|
BsonInt32 |
BsonDocument.getInt32(Object key,
BsonInt32 defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
int |
BsonInt32.compareTo(BsonInt32 o) |
BsonInt32 |
BsonDocument.getInt32(Object key,
BsonInt32 defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
BsonInt32 |
BsonInt32Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
Class<BsonInt32> |
BsonInt32Codec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonInt32Codec.encode(BsonWriter writer,
BsonInt32 value,
EncoderContext encoderContext) |
Copyright © 2016. All Rights Reserved.