Package de.bild.codec
Class MapTypeCodec<K,V>
- All Implemented Interfaces:
TypeCodec<Map<K,,V>> org.bson.codecs.Codec<Map<K,,V>> org.bson.codecs.Decoder<Map<K,,V>> org.bson.codecs.Encoder<Map<K,V>>
- Direct Known Subclasses:
ComplexMapTypeCodec,SimpleMapTypeCodec
-
Constructor Summary
ConstructorsConstructorDescriptionMapTypeCodec(Class<Map<K, V>> encoderClass, Type valueType, TypeCodecRegistry typeCodecRegistry) -
Method Summary
Modifier and TypeMethodDescriptionOverride this method if your Codec needs to supply default values as replacements for null values.protected Constructor<Map<K,V>> getDefaultConstructor(Class<Map<K, V>> clazz) Methods inherited from class de.bild.codec.AbstractTypeCodec
newInstance, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bson.codecs.Decoder
decodeMethods inherited from interface org.bson.codecs.Encoder
encodeMethods inherited from interface de.bild.codec.TypeCodec
documentHasId, generateIdIfAbsentFromDocument, getDecodingPojoFailureStrategy, getDocumentId, getTypeFilter, isCollectible
-
Constructor Details
-
MapTypeCodec
-
-
Method Details
-
getDefaultConstructor
- Overrides:
getDefaultConstructorin classAbstractTypeCodec<Map<K,V>>
-
defaultInstance
Description copied from interface:TypeCodecOverride this method if your Codec needs to supply default values as replacements for null values.- Returns:
- null or a default value
-
getEncoderClass
- Specified by:
getEncoderClassin interfaceorg.bson.codecs.Encoder<K>- Overrides:
getEncoderClassin classAbstractTypeCodec<Map<K,V>>
-