public class BsonTypeCodecMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BsonTypeClassMap |
bsonTypeClassMap |
private Codec<?>[] |
codecs |
Constructor and Description |
---|
BsonTypeCodecMap(BsonTypeClassMap bsonTypeClassMap,
CodecRegistry codecRegistry)
Initializes the map by iterating the keys of the given BsonTypeClassMap and looking up the Codec for the Class mapped to each key.
|
Modifier and Type | Method and Description |
---|---|
Codec<?> |
get(BsonType bsonType)
Gets the Codec mapped to the given bson type.
|
private final BsonTypeClassMap bsonTypeClassMap
private final Codec<?>[] codecs
public BsonTypeCodecMap(BsonTypeClassMap bsonTypeClassMap, CodecRegistry codecRegistry)
bsonTypeClassMap
- the non-null BsonTypeClassMapcodecRegistry
- the non-null CodecRegistry