Class KeyCodec

  • All Implemented Interfaces:
    org.bson.codecs.Codec<Key>, org.bson.codecs.Decoder<Key>, org.bson.codecs.Encoder<Key>

    @Deprecated(since="2.0",
                forRemoval=true)
    public class KeyCodec
    extends Object
    implements org.bson.codecs.Codec<Key>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Defines the codec for Key types
    • Method Detail

      • decode

        public Key decode​(org.bson.BsonReader reader,
                          org.bson.codecs.DecoderContext decoderContext)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        decode in interface org.bson.codecs.Decoder<Key>
      • getEncoderClass

        public Class<Key> getEncoderClass()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getEncoderClass in interface org.bson.codecs.Encoder<Key>
      • encode

        public void encode​(org.bson.BsonWriter writer,
                           Key value,
                           org.bson.codecs.EncoderContext encoderContext)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        encode in interface org.bson.codecs.Encoder<Key>