| 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 |
|---|---|
BsonDateTime |
BsonValue.asDateTime()
Gets this value as a BsonDateTime if it is one, otherwise throws exception
|
BsonDateTime |
BsonDocument.getDateTime(Object key)
Gets the value of the key if it is a BsonDateTime, or throws if not.
|
BsonDateTime |
BsonDocument.getDateTime(Object key,
BsonDateTime defaultValue)
If the document does not contain the given key, return the given default value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
BsonDateTime.compareTo(BsonDateTime o) |
BsonDateTime |
BsonDocument.getDateTime(Object key,
BsonDateTime defaultValue)
If the document does not contain the given key, return the given default value.
|
| Modifier and Type | Method and Description |
|---|---|
BsonDateTime |
BsonDateTimeCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
| Modifier and Type | Method and Description |
|---|---|
Class<BsonDateTime> |
BsonDateTimeCodec.getEncoderClass() |
| Modifier and Type | Method and Description |
|---|---|
void |
BsonDateTimeCodec.encode(BsonWriter writer,
BsonDateTime value,
EncoderContext encoderContext) |
Copyright © 2017. All Rights Reserved.