Class LongTypeDeserializer
- java.lang.Object
-
- org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer<T>
-
- org.eclipse.yasson.internal.serializer.AbstractNumberDeserializer<Long>
-
- org.eclipse.yasson.internal.serializer.LongTypeDeserializer
-
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbDeserializer<Long>
public class LongTypeDeserializer extends AbstractNumberDeserializer<Long>
Deserializer forLong
type.- Author:
- David Kral
-
-
Constructor Summary
Constructors Constructor Description LongTypeDeserializer(Customization customization)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Long
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
-
-
-
-
Constructor Detail
-
LongTypeDeserializer
public LongTypeDeserializer(Customization customization)
Creates a new instance.- Parameters:
customization
- Model customization.
-
-
Method Detail
-
deserialize
protected Long deserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)
Description copied from class:AbstractValueTypeDeserializer
Convert string value to object.- Overrides:
deserialize
in classAbstractValueTypeDeserializer<Long>
- Parameters:
jsonValue
- Json value.unmarshaller
- Unmarshaller instance.rtType
- Runtime type.- Returns:
- Deserialized object.
-
-