Class B2JsonCharSquenceHandler

  • All Implemented Interfaces:
    B2JsonTypeHandler<java.lang.CharSequence>

    public class B2JsonCharSquenceHandler
    extends java.lang.Object
    implements B2JsonTypeHandler<java.lang.CharSequence>
    (De)serializes CharSequence objects When deserializing, the underlying concrete type is String and thus will allocate even when the JSON input is a string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.CharSequence defaultValueForOptional()
      Returns the default value to use when an optional field is not present.
      java.lang.CharSequence deserialize​(B2JsonReader in, B2JsonOptions options)
      Deserialize one object from a JSON input stream.
      java.lang.CharSequence deserializeUrlParam​(java.lang.String urlValue)
      When an API is called with GET, this is used to deserialize one of the values.
      java.lang.reflect.Type getHandledType()
      What class does this handle?
      boolean isStringInJson()
      Does this type look like a string in JSON?
      void serialize​(java.lang.CharSequence obj, B2JsonOptions options, B2JsonWriter out)
      Serialize one object of the class to a JSON output stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait