@CompileStatic class CodecExtensions extends Object implements CodecProvider
Additional Codec extensions. This class implements {@CodecProvider} and integrates with the {@CodecRegistry} to make it easier to convert objects to and from BSON documents
| Modifiers | Name | Description |
|---|---|---|
static class |
CodecExtensions.CurrencyCodec |
|
static class |
CodecExtensions.GStringCodec |
|
static class |
CodecExtensions.IntRangeCodec |
|
static class |
CodecExtensions.ListCodec |
|
static class |
CodecExtensions.LocaleCodec |
|
static class |
CodecExtensions.MapCodec |
| Constructor and description |
|---|
CodecExtensions() |
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
Codec<T> |
get(Class<T> clazz, CodecRegistry registry) |
|
static Converter |
getBsonConverter(Class<? extends BsonValue> type) |
|
static Collection<Converter> |
getBsonConverters() |
|
static Codec |
getCodecForBsonType(BsonType bsonType, CodecRegistry registry) |