Document LegacyGsonTypeHandlerAdapter
*/
package org.terasology.persistence.typeHandling.gson;
+import com.google.gson.Gson;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import java.lang.reflect.Type;
/**
+ * Adapts a {@link TypeHandler} as a legacy Gson {@link JsonSerializer} and {@link JsonDeserializer}.
+ * Instances of {@link LegacyGsonTypeHandlerAdapter}, when registered as type adapters in a {@link Gson}
+ * object, can be used to (de)serialize objects to JSON (via Gson) with the rules specified by
+ * the {@link #typeHandler}.
*/
public class LegacyGsonTypeHandlerAdapter<T> implements JsonDeserializer<T>, JsonSerializer<T> {
