- java.lang.Object
-
- org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer<Enum>
-
- org.eclipse.yasson.internal.serializer.EnumTypeDeserializer
-
- All Implemented Interfaces:
jakarta.json.bind.serializer.JsonbDeserializer<Enum>
public class EnumTypeDeserializer extends AbstractValueTypeDeserializer<Enum>
Deserializer forEnumtype.
-
-
Constructor Summary
Constructors Constructor Description EnumTypeDeserializer(Customization customization)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Enumdeserialize(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
-
EnumTypeDeserializer
public EnumTypeDeserializer(Customization customization)
Creates a new instance.- Parameters:
customization- Model customization.
-
-
Method Detail
-
deserialize
protected Enum deserialize(String jsonValue, Unmarshaller unmarshaller, Type rtType)
Description copied from class:AbstractValueTypeDeserializerConvert string value to object.- Overrides:
deserializein classAbstractValueTypeDeserializer<Enum>- Parameters:
jsonValue- Json value.unmarshaller- Unmarshaller instance.rtType- Runtime type.- Returns:
- Deserialized object.
-
-