public class IterableCodecProvider extends java.lang.Object implements CodecProvider
CodecProvider for classes than implement the Iterable interface.| 构造器和说明 |
|---|
IterableCodecProvider()
Construct a new instance with a default
BsonTypeClassMap and no Transformer. |
IterableCodecProvider(BsonTypeClassMap bsonTypeClassMap)
Construct a new instance with the given instance of
BsonTypeClassMap and no Transformer. |
IterableCodecProvider(BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given instance of
BsonTypeClassMap and Transformer. |
IterableCodecProvider(Transformer valueTransformer)
Construct a new instance with a default
BsonTypeClassMap and the given Transformer. |
public IterableCodecProvider()
BsonTypeClassMap and no Transformer.public IterableCodecProvider(Transformer valueTransformer)
BsonTypeClassMap and the given Transformer. The transformer is used by the
IterableCodec as a last step when decoding values.valueTransformer - the value transformer for decoded valuesDocumentCodec.DocumentCodec(org.bson.codecs.configuration.CodecRegistry, BsonTypeClassMap, org.bson.Transformer)public IterableCodecProvider(BsonTypeClassMap bsonTypeClassMap)
BsonTypeClassMap and no Transformer.bsonTypeClassMap - the non-null BsonTypeClassMap with which to construct instances of DocumentCodec and ListCodecpublic IterableCodecProvider(BsonTypeClassMap bsonTypeClassMap, Transformer valueTransformer)
BsonTypeClassMap and Transformer.bsonTypeClassMap - the non-null BsonTypeClassMap with which to construct instances of DocumentCodec and ListCodec.valueTransformer - the value transformer for decoded valuespublic <T> Codec<T> get(java.lang.Class<T> clazz, CodecRegistry registry)
CodecProviderCodec using the given context, which includes, most importantly, the Class for which a Codec is required.get 在接口中 CodecProviderT - the type of the class for which a Codec is requiredclazz - the Class for which to get a Codecregistry - the registry to use for resolving dependent Codec instancespublic boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Object