All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javers.core.json.JsonAdvancedTypeAdapter Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy