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