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