Package org.bson.codecs
Class IterableCodec
- java.lang.Object
-
- org.bson.codecs.IterableCodec
-
- All Implemented Interfaces:
Codec<java.lang.Iterable>,Decoder<java.lang.Iterable>,Encoder<java.lang.Iterable>,OverridableUuidRepresentationCodec<java.lang.Iterable>
@Deprecated(since="2022-10-31") public class IterableCodec extends java.lang.Object implements Codec<java.lang.Iterable>, OverridableUuidRepresentationCodec<java.lang.Iterable>
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Encodes and decodesIterableobjects.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description IterableCodec(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Iterabledecode(BsonReader reader, DecoderContext decoderContext)Deprecated.Decodes a BSON value from the given reader into an instance of the type parameterT.voidencode(BsonWriter writer, java.lang.Iterable value, EncoderContext encoderContext)Deprecated.Encode an instance of the type parameterTinto a BSON value.java.lang.Class<java.lang.Iterable>getEncoderClass()Deprecated.Returns the Class instance that this encodes.Codec<java.lang.Iterable>withUuidRepresentation(UuidRepresentation uuidRepresentation)Deprecated.Implementations must return a new instance with theUuidRepresentationoverridden with the given value.
-
-
-
Constructor Detail
-
IterableCodec
public IterableCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap)
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 Detail
-
withUuidRepresentation
public Codec<java.lang.Iterable> withUuidRepresentation(UuidRepresentation uuidRepresentation)
Deprecated.Description copied from interface:OverridableUuidRepresentationCodecImplementations must return a new instance with theUuidRepresentationoverridden with the given value.- Specified by:
withUuidRepresentationin interfaceOverridableUuidRepresentationCodec<java.lang.Iterable>- Parameters:
uuidRepresentation- the UuidRepresentation- Returns:
- a new instance equivalent to this but with the given UuidRepresentation
-
decode
public java.lang.Iterable decode(BsonReader reader, DecoderContext decoderContext)
Deprecated.Description copied from interface:DecoderDecodes a BSON value from the given reader into an instance of the type parameterT.
-
encode
public void encode(BsonWriter writer, java.lang.Iterable value, EncoderContext encoderContext)
Deprecated.Description copied from interface:EncoderEncode an instance of the type parameterTinto a BSON value.
-
getEncoderClass
public java.lang.Class<java.lang.Iterable> 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<java.lang.Iterable>- Returns:
- the Class instance that this encodes.
-
-