Interface B2JsonTypeHandler<T>

    • Method Detail

      • getHandledType

        java.lang.reflect.Type getHandledType()
        What class does this handle?
        Returns:
      • deserialize

        T deserialize​(B2JsonReader in,
                      B2JsonOptions options)
               throws B2JsonException,
                      java.io.IOException
        Deserialize one object from a JSON input stream. Will never be called when there is "null" in the input stream, and will never return null.
        Throws:
        B2JsonException
        java.io.IOException
      • deserializeUrlParam

        T deserializeUrlParam​(java.lang.String urlValue)
                       throws B2JsonException
        When an API is called with GET, this is used to deserialize one of the values.
        Throws:
        B2JsonException
      • defaultValueForOptional

        T defaultValueForOptional()
        Returns the default value to use when an optional field is not present.
      • isStringInJson

        boolean isStringInJson()
        Does this type look like a string in JSON?