Class OptionalIntTypeDeserializer
java.lang.Object
org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer<OptionalInt>
org.eclipse.yasson.internal.serializer.OptionalIntTypeDeserializer
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbDeserializer<OptionalInt>
Deserializer for
OptionalInt type.-
Constructor Summary
ConstructorsConstructorDescriptionOptionalIntTypeDeserializer(Customization customization) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected OptionalIntdeserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType) Convert string value to object.deserialize(javax.json.stream.JsonParser parser, javax.json.bind.serializer.DeserializationContext ctx, Type rtType) Extracts single string value for conversion.Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer
getCustomization, getPropertyType
-
Constructor Details
-
OptionalIntTypeDeserializer
Creates a new instance.- Parameters:
customization- Model customization.
-
-
Method Details
-
deserialize
public OptionalInt deserialize(javax.json.stream.JsonParser parser, javax.json.bind.serializer.DeserializationContext ctx, Type rtType) Description copied from class:AbstractValueTypeDeserializerExtracts single string value for conversion.- Specified by:
deserializein interfacejavax.json.bind.serializer.JsonbDeserializer<OptionalInt>- Overrides:
deserializein classAbstractValueTypeDeserializer<OptionalInt>- Parameters:
parser- Parser to get value from.ctx- Unmarshaller.rtType- return type.- Returns:
- Deserialized object.
-
deserialize
Description copied from class:AbstractValueTypeDeserializerConvert string value to object.- Overrides:
deserializein classAbstractValueTypeDeserializer<OptionalInt>- Parameters:
jsonValue- Json value.unmarshaller- Unmarshaller instance.rtType- Runtime type.- Returns:
- Deserialized object.
-