Package org.bson.codecs
Class IntegerCodec
- java.lang.Object
-
- org.bson.codecs.IntegerCodec
-
- All Implemented Interfaces:
Codec<java.lang.Integer>,Decoder<java.lang.Integer>,Encoder<java.lang.Integer>
@Deprecated(since="2022-10-31") public class IntegerCodec extends java.lang.Object implements Codec<java.lang.Integer>
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Encodes and decodesIntegerobjects.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description IntegerCodec()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Integerdecode(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.Integer value, EncoderContext encoderContext)Deprecated.Encode an instance of the type parameterTinto a BSON value.java.lang.Class<java.lang.Integer>getEncoderClass()Deprecated.Returns the Class instance that this encodes.
-
-
-
Method Detail
-
encode
public void encode(BsonWriter writer, java.lang.Integer value, EncoderContext encoderContext)
Deprecated.Description copied from interface:EncoderEncode an instance of the type parameterTinto a BSON value.
-
decode
public java.lang.Integer 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.
-
getEncoderClass
public java.lang.Class<java.lang.Integer> 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.Integer>- Returns:
- the Class instance that this encodes.
-
-