Class LocalTimeSerde
java.lang.Object
io.micronaut.serde.support.serdes.DefaultFormattedTemporalSerde<LocalTime>
io.micronaut.serde.support.serdes.LocalTimeSerde
- All Implemented Interfaces:
io.micronaut.core.order.Ordered, Deserializer<LocalTime>, Serde<LocalTime>, Serializer<LocalTime>, DeserializerRegistrar<LocalTime>, SerdeRegistrar<LocalTime>, TemporalSerde<LocalTime>, SerializerRegistrar<LocalTime>
public final class LocalTimeSerde
extends DefaultFormattedTemporalSerde<LocalTime>
implements SerdeRegistrar<LocalTime>
LocalTime serde.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface Deserializer
Deserializer.DecoderContextNested classes/interfaces inherited from interface Serializer
Serializer.EncoderContext -
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface TemporalSerde
UTC -
Constructor Summary
ConstructorsConstructorDescriptionLocalTimeSerde(SerdeConfiguration configuration) Allows configuring a default time format for temporal date/time types. -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultFormattedTemporalSerde<LocalTime> createSpecific(SerdeConfiguration configuration) Create the same serde with new configuration.protected LocalTimefromNanos(long seconds, int nanos) protected intgetNanoPart(LocalTime value) protected longgetSecondPart(LocalTime value) io.micronaut.core.type.Argument<LocalTime> getType()query()Methods inherited from class DefaultFormattedTemporalSerde
createSpecific, createSpecific, deserialize, serializeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Deserializer
deserialize, deserializeNullable, getDefaultValueMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface SerdeRegistrar
getTypesMethods inherited from interface Serializer
isAbsent, isDefault, isEmpty, serialize
-
Constructor Details
-
LocalTimeSerde
Allows configuring a default time format for temporal date/time types.- Parameters:
configuration- The configuration
-
-
Method Details
-
query
- Specified by:
queryin interfaceTemporalSerde<LocalTime>- Returns:
- The temporal query for the type.
-
fromNanos
-
getSecondPart
-
getNanoPart
-
createSpecific
Description copied from class:DefaultFormattedTemporalSerdeCreate the same serde with new configuration.- Overrides:
createSpecificin classDefaultFormattedTemporalSerde<LocalTime>- Parameters:
configuration- The new configuration- Returns:
- The updated serde
-
getType
- Specified by:
getTypein interfaceDeserializerRegistrar<LocalTime>- Specified by:
getTypein interfaceSerdeRegistrar<LocalTime>- Specified by:
getTypein interfaceSerializerRegistrar<LocalTime>- Returns:
- The serde argument type
-