C - collection typeV - value typepublic abstract class CollectionTypeCodec<C extends Collection<V>,V> extends AbstractTypeCodec<C>
logger| Constructor and Description |
|---|
CollectionTypeCodec(Class<C> collectionClass,
Type valueType,
TypeCodecRegistry typeCodecRegistry) |
| Modifier and Type | Method and Description |
|---|---|
C |
decode(org.bson.BsonReader reader,
org.bson.codecs.DecoderContext decoderContext) |
C |
defaultInstance()
Override this method if your Codec needs to supply default values as replacements for null values.
|
void |
encode(org.bson.BsonWriter writer,
C value,
org.bson.codecs.EncoderContext encoderContext) |
getDefaultConstructor, getEncoderClass, newInstance, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdocumentHasId, generateIdIfAbsentFromDocument, getDocumentId, isCollectiblepublic CollectionTypeCodec(Class<C> collectionClass, Type valueType, TypeCodecRegistry typeCodecRegistry)
Copyright © 2018 BILD GmbH & Co. KG. All rights reserved.