Class BasicStringSuperTypeAdapter<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract T deserialize​(java.lang.String serializedValue)  
      T fromJson​(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext jsonDeserializationContext)  
      abstract java.lang.String serialize​(T sourceValue)  
      com.google.gson.JsonElement toJson​(T sourceValue, java.lang.reflect.Type typeOfT, com.google.gson.JsonSerializationContext context)  
      • Methods inherited from class java.lang.Object

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

      • BasicStringSuperTypeAdapter

        public BasicStringSuperTypeAdapter()
    • Method Detail

      • serialize

        public abstract java.lang.String serialize​(T sourceValue)
      • deserialize

        public abstract T deserialize​(java.lang.String serializedValue)
      • fromJson

        public T fromJson​(com.google.gson.JsonElement json,
                          java.lang.reflect.Type typeOfT,
                          com.google.gson.JsonDeserializationContext jsonDeserializationContext)
        Specified by:
        fromJson in interface JsonAdvancedTypeAdapter<T>
      • toJson

        public com.google.gson.JsonElement toJson​(T sourceValue,
                                                  java.lang.reflect.Type typeOfT,
                                                  com.google.gson.JsonSerializationContext context)
        Specified by:
        toJson in interface JsonAdvancedTypeAdapter<T>