Package org.bson.codecs
Class IterableCodec
java.lang.Object
org.bson.codecs.IterableCodec
- All Implemented Interfaces:
Codec<Iterable>,Decoder<Iterable>,Encoder<Iterable>,OverridableUuidRepresentationCodec<Iterable>
@Deprecated
public class IterableCodec
extends Object
implements Codec<Iterable>, OverridableUuidRepresentationCodec<Iterable>
Deprecated.
Encodes and decodes
Iterable objects.- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionIterableCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap) Deprecated.Construct a new instance with the givenCodecRegistryandBsonTypeClassMap.IterableCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap, Transformer valueTransformer) Deprecated.Construct a new instance with the givenCodecRegistryandBsonTypeClassMap. -
Method Summary
Modifier and TypeMethodDescriptiondecode(BsonReader reader, DecoderContext decoderContext) Deprecated.Decodes a BSON value from the given reader into an instance of the type parameterT.voidencode(BsonWriter writer, Iterable value, EncoderContext encoderContext) Deprecated.Encode an instance of the type parameterTinto a BSON value.Deprecated.Returns the Class instance that this encodes.withUuidRepresentation(UuidRepresentation uuidRepresentation) Deprecated.Implementations must return a new instance with theUuidRepresentationoverridden with the given value.
-
Constructor Details
-
IterableCodec
Deprecated.Construct a new instance with the givenCodecRegistryandBsonTypeClassMap.- Parameters:
registry- the non-null codec registrybsonTypeClassMap- the non-null BsonTypeClassMap
-
IterableCodec
public IterableCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap, Transformer valueTransformer) Deprecated.Construct a new instance with the givenCodecRegistryandBsonTypeClassMap.- Parameters:
registry- the non-null codec registrybsonTypeClassMap- the non-null BsonTypeClassMapvalueTransformer- the value Transformer
-
-
Method Details
-
withUuidRepresentation
Deprecated.Description copied from interface:OverridableUuidRepresentationCodecImplementations must return a new instance with theUuidRepresentationoverridden with the given value.- Specified by:
withUuidRepresentationin interfaceOverridableUuidRepresentationCodec<Iterable>- Parameters:
uuidRepresentation- the UuidRepresentation- Returns:
- a new instance equivalent to this but with the given UuidRepresentation
-
decode
Deprecated.Description copied from interface:DecoderDecodes a BSON value from the given reader into an instance of the type parameterT. -
encode
Deprecated.Description copied from interface:EncoderEncode an instance of the type parameterTinto a BSON value. -
getEncoderClass
Deprecated.Description copied from interface:EncoderReturns the Class instance that this encodes. This is necessary because Java does not reify generic types.- Specified by:
getEncoderClassin interfaceEncoder<Iterable>- Returns:
- the Class instance that this encodes.
-
CollectionCodecProvider