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
ConstructorDescriptionOptionalLongTypeDeserializer(Customization customization)
Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected OptionalLong
deserialize(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:AbstractValueTypeDeserializer
Extracts single string value for conversion.- Specified by:
deserialize
in interfacejavax.json.bind.serializer.JsonbDeserializer<OptionalLong>
- Overrides:
deserialize
in classAbstractValueTypeDeserializer<OptionalLong>
- Parameters:
parser
- Parser to get value from.ctx
- Unmarshaller.rtType
- return type.- Returns:
- Deserialized object.
-
deserialize
Description copied from class:AbstractValueTypeDeserializer
Convert string value to object.- Overrides:
deserialize
in classAbstractValueTypeDeserializer<OptionalLong>
- Parameters:
jsonValue
- Json value.unmarshaller
- Unmarshaller instance.rtType
- Runtime type.- Returns:
- Deserialized object.
-