Package dev.morphia.mapping.codec
Class MorphiaLocalTimeCodec
- java.lang.Object
-
- dev.morphia.mapping.codec.MorphiaLocalTimeCodec
-
- All Implemented Interfaces:
org.bson.codecs.Codec<LocalTime>
,org.bson.codecs.Decoder<LocalTime>
,org.bson.codecs.Encoder<LocalTime>
public class MorphiaLocalTimeCodec extends Object implements org.bson.codecs.Codec<LocalTime>
Converts theLocalTime
values to and from the zone defined inMapperOptions.getDateStorage()
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description MorphiaLocalTimeCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalTime
decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
void
encode(org.bson.BsonWriter writer, LocalTime value, org.bson.codecs.EncoderContext encoderContext)
Class<LocalTime>
getEncoderClass()
-
-
-
Method Detail
-
decode
public LocalTime decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
- Specified by:
decode
in interfaceorg.bson.codecs.Decoder<LocalTime>
-
encode
public void encode(org.bson.BsonWriter writer, LocalTime value, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<LocalTime>
-
-