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 | Field and Description |
---|---|
static BsonBoolean |
BsonBoolean.FALSE |
static BsonBoolean |
BsonBoolean.TRUE |
Modifier and Type | Method and Description |
---|---|
BsonBoolean |
BsonValue.asBoolean()
Gets this value as a BsonString if it is one, otherwise throws exception
|
BsonBoolean |
BsonDocument.getBoolean(Object key)
Gets the value of the key if it is a BsonBoolean, or throws if not.
|
BsonBoolean |
BsonDocument.getBoolean(Object key,
BsonBoolean defaultValue)
If the document does not contain the given key, return the given default value.
|
static BsonBoolean |
BsonBoolean.valueOf(boolean value)
Returns a
BsonBoolean instance representing the specified boolean value. |
Modifier and Type | Method and Description |
---|---|
int |
BsonBoolean.compareTo(BsonBoolean o) |
BsonBoolean |
BsonDocument.getBoolean(Object key,
BsonBoolean defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
BsonBoolean |
BsonBooleanCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
Class<BsonBoolean> |
BsonBooleanCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonBooleanCodec.encode(BsonWriter writer,
BsonBoolean value,
EncoderContext encoderContext) |
Copyright © 2016. All Rights Reserved.