Class JodaDateTimeSerde

java.lang.Object
io.micronaut.aws.lambda.events.serde.JodaDateTimeSerde
All Implemented Interfaces:
io.micronaut.serde.Deserializer<org.joda.time.DateTime>, io.micronaut.serde.Serde<org.joda.time.DateTime>, io.micronaut.serde.Serializer<org.joda.time.DateTime>, io.micronaut.serde.util.NullableDeserializer<org.joda.time.DateTime>, io.micronaut.serde.util.NullableSerde<org.joda.time.DateTime>

@Singleton @Requires(classes=org.joda.time.DateTime.class) public class JodaDateTimeSerde extends Object implements io.micronaut.serde.util.NullableSerde<org.joda.time.DateTime>
NullableSerde implementation for JODA DateTime.
Since:
4.0.0
Author:
Sergio del Amo
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer

    io.micronaut.serde.Deserializer.DecoderContext

    Nested classes/interfaces inherited from interface io.micronaut.serde.Serializer

    io.micronaut.serde.Serializer.EncoderContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.joda.time.DateTime
    deserializeNonNull(io.micronaut.serde.Decoder decoder, io.micronaut.serde.Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super org.joda.time.DateTime> type)
     
    void
    serialize(@NonNull io.micronaut.serde.Encoder encoder, @NonNull io.micronaut.serde.Serializer.EncoderContext context, @NonNull io.micronaut.core.type.Argument<? extends org.joda.time.DateTime> type, @NonNull org.joda.time.DateTime value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.serde.Deserializer

    allowNull, createSpecific, getDefaultValue

    Methods inherited from interface io.micronaut.serde.util.NullableDeserializer

    deserialize, deserializeNullable

    Methods inherited from interface io.micronaut.serde.Serializer

    createSpecific, isAbsent, isEmpty
  • Constructor Details

    • JodaDateTimeSerde

      public JodaDateTimeSerde()
  • Method Details

    • serialize

      public void serialize(@NonNull @NonNull io.micronaut.serde.Encoder encoder, @NonNull @NonNull io.micronaut.serde.Serializer.EncoderContext context, @NonNull @NonNull io.micronaut.core.type.Argument<? extends org.joda.time.DateTime> type, @NonNull @NonNull org.joda.time.DateTime value) throws IOException
      Specified by:
      serialize in interface io.micronaut.serde.Serializer<org.joda.time.DateTime>
      Throws:
      IOException
    • deserializeNonNull

      @NonNull public @NonNull org.joda.time.DateTime deserializeNonNull(io.micronaut.serde.Decoder decoder, io.micronaut.serde.Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super org.joda.time.DateTime> type) throws IOException
      Specified by:
      deserializeNonNull in interface io.micronaut.serde.util.NullableDeserializer<org.joda.time.DateTime>
      Throws:
      IOException