Class DoubleTypeDeserializer
- java.lang.Object
-
- org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer<T>
-
- org.eclipse.yasson.internal.serializer.AbstractNumberDeserializer<Double>
-
- org.eclipse.yasson.internal.serializer.DoubleTypeDeserializer
-
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbDeserializer<Double>
public class DoubleTypeDeserializer extends AbstractNumberDeserializer<Double>
Deserializer forDouble
type.- Author:
- David Kral
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
NAN
protected static String
NEGATIVE_INFINITY
protected static String
POSITIVE_INFINITY
-
Constructor Summary
Constructors Constructor Description DoubleTypeDeserializer(Customization customization)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Double
deserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)
Convert string value to object.-
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractNumberDeserializer
deserializeFormatted
-
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer
deserialize, getCustomization, getPropertyType
-
-
-
-
Field Detail
-
POSITIVE_INFINITY
protected static final String POSITIVE_INFINITY
- See Also:
- Constant Field Values
-
NEGATIVE_INFINITY
protected static final String NEGATIVE_INFINITY
- See Also:
- Constant Field Values
-
NAN
protected static final String NAN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DoubleTypeDeserializer
public DoubleTypeDeserializer(Customization customization)
Creates a new instance.- Parameters:
customization
- Model customization.
-
-
Method Detail
-
deserialize
protected Double deserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)
Description copied from class:AbstractValueTypeDeserializer
Convert string value to object.- Overrides:
deserialize
in classAbstractValueTypeDeserializer<Double>
- Parameters:
jsonValue
- Json value.unmarshaller
- Unmarshaller instance.rtType
- Runtime type.- Returns:
- Deserialized object.
-
-