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 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, serialize
allowNull, deserialize, deserializeNonNull
getDefaultValue
default Deserializer<N> createSpecific(io.micronaut.core.type.Argument<? super N> context, Deserializer.DecoderContext decoderContext) throws SerdeException
Deserializer
createSpecific
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 contextSerdeException
default Serializer<N> createSpecific(io.micronaut.core.type.Argument<? extends N> type, Serializer.EncoderContext encoderContext)
Serializer
createSpecific
in interface Serializer<N extends java.lang.Number>
type
- The type definition including any annotation metadataencoderContext
- The encoder context