Class OptionalLongTypeDeserializer

  • All Implemented Interfaces:
    javax.json.bind.serializer.JsonbDeserializer<java.util.OptionalLong>

    public class OptionalLongTypeDeserializer
    extends AbstractValueTypeDeserializer<java.util.OptionalLong>
    Deserializer for OptionalLong type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.OptionalLong deserialize​(java.lang.String jsonValue, Unmarshaller unmarshaller, java.lang.reflect.Type rtType)
      Convert string value to object.
      java.util.OptionalLong deserialize​(javax.json.stream.JsonParser parser, javax.json.bind.serializer.DeserializationContext ctx, java.lang.reflect.Type rtType)
      Extracts single string value for conversion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OptionalLongTypeDeserializer

        public OptionalLongTypeDeserializer​(Customization customization)
        Creates a new instance.
        Parameters:
        customization - Model customization.
    • Method Detail

      • deserialize

        public java.util.OptionalLong deserialize​(javax.json.stream.JsonParser parser,
                                                  javax.json.bind.serializer.DeserializationContext ctx,
                                                  java.lang.reflect.Type rtType)
        Description copied from class: AbstractValueTypeDeserializer
        Extracts single string value for conversion.
        Specified by:
        deserialize in interface javax.json.bind.serializer.JsonbDeserializer<java.util.OptionalLong>
        Overrides:
        deserialize in class AbstractValueTypeDeserializer<java.util.OptionalLong>
        Parameters:
        parser - Parser to get value from.
        ctx - Unmarshaller.
        rtType - return type.
        Returns:
        Deserialized object.
      • deserialize

        protected java.util.OptionalLong deserialize​(java.lang.String jsonValue,
                                                     Unmarshaller unmarshaller,
                                                     java.lang.reflect.Type rtType)
        Description copied from class: AbstractValueTypeDeserializer
        Convert string value to object.
        Overrides:
        deserialize in class AbstractValueTypeDeserializer<java.util.OptionalLong>
        Parameters:
        jsonValue - Json value.
        unmarshaller - Unmarshaller instance.
        rtType - Runtime type.
        Returns:
        Deserialized object.