N
- The number typepublic interface NumberSerde<N extends java.lang.Number> extends Serde<N>, NullableSerde<N>
Serializer.EncoderContext
Deserializer.DecoderContext
Modifier and Type | Method and Description |
---|---|
default Deserializer<N> |
createSpecific(Deserializer.DecoderContext decoderContext,
io.micronaut.core.type.Argument<? super N> context)
Create a new child deserializer or return this if non is necessary for the given context.
|
default Serializer<N> |
createSpecific(Serializer.EncoderContext context,
io.micronaut.core.type.Argument<? extends N> type)
Create a more specific serializer for the given definition.
|
isAbsent, isEmpty, serialize
allowNull, deserialize, deserializeNonNull
getDefaultValue
default Deserializer<N> createSpecific(Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super N> context) throws SerdeException
Deserializer
createSpecific
in interface Deserializer<N extends java.lang.Number>
decoderContext
- The decoder contextcontext
- The context, including any annotation metadata and type information to narrow the deserializer typeSerdeException
default Serializer<N> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends N> type)
Serializer
createSpecific
in interface Serializer<N extends java.lang.Number>
context
- The encoder contexttype
- The type definition including any annotation metadata