Package dev.morphia.mapping.codec
Class KeyCodec
- java.lang.Object
-
- dev.morphia.mapping.codec.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 Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.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.Class<Key>
getEncoderClass()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
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 interfaceorg.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 interfaceorg.bson.codecs.Encoder<Key>
-
-