Module org.eclipse.yasson
Class NumberTypeDeserializer
- java.lang.Object
-
- org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer<Number>
-
- org.eclipse.yasson.internal.serializer.NumberTypeDeserializer
-
- All Implemented Interfaces:
jakarta.json.bind.serializer.JsonbDeserializer<Number>
public class NumberTypeDeserializer extends AbstractValueTypeDeserializer<Number>
Deserializer forNumbertype.
-
-
Constructor Summary
Constructors Constructor Description NumberTypeDeserializer(Customization customization)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Numberdeserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)Convert string value to object.-
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer
deserialize, getCustomization, getPropertyType
-
-
-
-
Constructor Detail
-
NumberTypeDeserializer
public NumberTypeDeserializer(Customization customization)
Creates a new instance.- Parameters:
customization- Model customization.
-
-
Method Detail
-
deserialize
protected Number deserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)
Description copied from class:AbstractValueTypeDeserializerConvert string value to object.- Overrides:
deserializein classAbstractValueTypeDeserializer<Number>- Parameters:
jsonValue- Json value.unmarshaller- Unmarshaller instance.rtType- Runtime type.- Returns:
- Deserialized object.
-
-