Class DurationTypeDeserializer
- java.lang.Object
-
- org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer<Duration>
-
- org.eclipse.yasson.internal.serializer.DurationTypeDeserializer
-
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbDeserializer<Duration>
public class DurationTypeDeserializer extends AbstractValueTypeDeserializer<Duration>
Deserializer forDuration
type.
-
-
Constructor Summary
Constructors Constructor Description DurationTypeDeserializer(Customization customization)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Duration
deserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)
Convert string value to object.-
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer
deserialize, getCustomization, getPropertyType
-
-
-
-
Constructor Detail
-
DurationTypeDeserializer
public DurationTypeDeserializer(Customization customization)
Creates a new instance.- Parameters:
customization
- Model customization.
-
-
Method Detail
-
deserialize
protected Duration deserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)
Description copied from class:AbstractValueTypeDeserializer
Convert string value to object.- Overrides:
deserialize
in classAbstractValueTypeDeserializer<Duration>
- Parameters:
jsonValue
- Json value.unmarshaller
- Unmarshaller instance.rtType
- Runtime type.- Returns:
- Deserialized object.
-
-