Codec<AtomicInteger>
, Decoder<AtomicInteger>
, Encoder<AtomicInteger>
public class AtomicIntegerCodec extends Object implements Codec<AtomicInteger>
AtomicInteger
objects.Constructor | Description |
---|---|
AtomicIntegerCodec() |
Modifier and Type | Method | Description |
---|---|---|
AtomicInteger |
decode(BsonReader reader,
DecoderContext decoderContext) |
Decodes a BSON value from the given reader into an instance of the type parameter
T . |
void |
encode(BsonWriter writer,
AtomicInteger value,
EncoderContext encoderContext) |
Encode an instance of the type parameter
T into a BSON value. |
Class<AtomicInteger> |
getEncoderClass() |
Returns the Class instance that this encodes.
|
public void encode(BsonWriter writer, AtomicInteger value, EncoderContext encoderContext)
Encoder
T
into a BSON value.encode
in interface Encoder<AtomicInteger>
writer
- the BSON writer to encode intovalue
- the value to encodeencoderContext
- the encoder contextpublic AtomicInteger decode(BsonReader reader, DecoderContext decoderContext)
Decoder
T
.decode
in interface Decoder<AtomicInteger>
reader
- the BSON readerdecoderContext
- the decoder contextT
.public Class<AtomicInteger> getEncoderClass()
Encoder
getEncoderClass
in interface Encoder<AtomicInteger>