org.javers.core.json.JsonAdvancedTypeAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-core Show documentation
Show all versions of javers-core Show documentation
JaVers - object auditing and diff framework for Java
package org.javers.core.json;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonElement;
import com.google.gson.JsonSerializationContext;
import java.lang.reflect.Type;
/**
* Advanced variant of {@link JsonTypeAdapter}
*
* @author bartosz.walacik
*/
public interface JsonAdvancedTypeAdapter {
T fromJson(JsonElement json, Type typeOfT, JsonDeserializationContext context);
JsonElement toJson(T sourceValue, Type typeOfT, JsonSerializationContext context);
Class getTypeSuperclass();
}