Package dev.morphia.mapping.codec
Class EnumCodec<T extends Enum<T>>
- java.lang.Object
-
- dev.morphia.mapping.codec.EnumCodec<T>
-
- Type Parameters:
T
- the type of the enum
- All Implemented Interfaces:
org.bson.codecs.Codec<T>
,org.bson.codecs.Decoder<T>
,org.bson.codecs.Encoder<T>
public class EnumCodec<T extends Enum<T>> extends Object implements org.bson.codecs.Codec<T>
An enum codec- Since:
- 2.0
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
void
encode(org.bson.BsonWriter writer, T value, org.bson.codecs.EncoderContext encoderContext)
Class<T>
getEncoderClass()
-