@Singleton public class LocalTimeSerde extends DefaultFormattedTemporalSerde<java.time.LocalTime>
Serializer.EncoderContextDeserializer.DecoderContextUTC| Modifier | Constructor and Description |
|---|---|
protected |
LocalTimeSerde(SerdeConfiguration configuration)
Allows configuring a default time format for temporal date/time types.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.time.LocalTime |
deserializeNonNullWithoutFormat(Decoder decoder,
Deserializer.DecoderContext decoderContext,
io.micronaut.core.type.Argument<? super java.time.LocalTime> type)
A method that is invoked when the value is known not to be null.
|
protected java.time.format.DateTimeFormatter |
getDefaultFormatter() |
java.time.temporal.TemporalQuery<java.time.LocalTime> |
query() |
protected void |
serializeWithoutFormat(Encoder encoder,
Serializer.EncoderContext context,
java.time.LocalTime value,
io.micronaut.core.type.Argument<? extends java.time.LocalTime> type)
Serializes the given value using the passed
Encoder. |
deserializeNonNull, serializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSpecific, createSpecificisAbsent, isEmptyallowNull, deserializegetDefaultValueprotected LocalTimeSerde(SerdeConfiguration configuration)
configuration - The configurationprotected java.time.format.DateTimeFormatter getDefaultFormatter()
getDefaultFormatter in class DefaultFormattedTemporalSerde<java.time.LocalTime>public java.time.temporal.TemporalQuery<java.time.LocalTime> query()
protected void serializeWithoutFormat(Encoder encoder, Serializer.EncoderContext context, java.time.LocalTime value, io.micronaut.core.type.Argument<? extends java.time.LocalTime> type) throws java.io.IOException
DefaultFormattedTemporalSerdeEncoder.serializeWithoutFormat in class DefaultFormattedTemporalSerde<java.time.LocalTime>encoder - The encoder to usecontext - The encoder context, never nullvalue - The value, can be nulltype - Models the generic type of the valuejava.io.IOException - If an error occurs during serializationprotected java.time.LocalTime deserializeNonNullWithoutFormat(Decoder decoder, Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super java.time.LocalTime> type) throws java.io.IOException
DefaultFormattedTemporalSerdedeserializeNonNullWithoutFormat in class DefaultFormattedTemporalSerde<java.time.LocalTime>decoder - The decoderdecoderContext - The decoder contexttype - The typejava.io.IOException - if something goes wrong during deserialization