Class BasicStringSuperTypeAdapter<T>

java.lang.Object
org.javers.core.json.BasicStringSuperTypeAdapter<T>
All Implemented Interfaces:
AbstractJsonTypeAdapter, JsonAdvancedTypeAdapter<T>
Direct Known Subclasses:
PathTypeAdapter

public abstract class BasicStringSuperTypeAdapter<T> extends Object implements JsonAdvancedTypeAdapter<T>
  • Constructor Details

    • BasicStringSuperTypeAdapter

      public BasicStringSuperTypeAdapter()
  • Method Details

    • serialize

      public abstract String serialize(T sourceValue)
    • deserialize

      public abstract T deserialize(String serializedValue)
    • fromJson

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

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