Class OptionalLongTypeDeserializer
java.lang.Object
org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer<OptionalLong>
org.eclipse.yasson.internal.serializer.OptionalLongTypeDeserializer
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbDeserializer<OptionalLong>
Deserializer for
OptionalLong type.-
Constructor Summary
ConstructorsConstructorDescriptionOptionalLongTypeDeserializer(Customization customization) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected OptionalLongdeserialize(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
-
OptionalLongTypeDeserializer
Creates a new instance.- Parameters:
customization- Model customization.
-
-
Method Details
-
deserialize
public OptionalLong 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<OptionalLong>- Overrides:
deserializein classAbstractValueTypeDeserializer<OptionalLong>- 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<OptionalLong>- Parameters:
jsonValue- Json value.unmarshaller- Unmarshaller instance.rtType- Runtime type.- Returns:
- Deserialized object.
-