List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file org.project.openbaton.nubomedia.paas.model.openshift.MetadataTypeAdapter.java
/** * Created by maa on 01.10.15. */ public class MetadataTypeAdapter extends TypeAdapter<Metadata> { @Override
From source file org.project.openbaton.nubomedia.paas.model.openshift.OutputTypeAdapter.java
/** * Created by maa on 08.10.15. */ public class OutputTypeAdapter extends TypeAdapter<Output> { @Override public void write(JsonWriter out, Output value) throws IOException {
From source file org.sakaiproject.contentreview.vericite.client.JSON.java
/** * Gson TypeAdapter for Joda DateTime type */ class DateTimeTypeAdapter extends TypeAdapter<DateTime> { private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
From source file org.spongepowered.plugin.meta.gson.ModDependencyAdapter.java
public final class ModDependencyAdapter extends TypeAdapter<PluginMetadata.Dependency> { public static final ModDependencyAdapter INSTANCE = new ModDependencyAdapter(); private static final char VERSION_SEPARATOR = '@';
From source file org.spongepowered.plugin.meta.gson.ModMetadataAdapter.java
public final class ModMetadataAdapter extends TypeAdapter<PluginMetadata> { public static final ModMetadataAdapter DEFAULT = new ModMetadataAdapter(new Gson(), ImmutableMap.of()); private final Gson gson; private final ImmutableMap<String, Class<?>> extensions;
From source file org.spongepowered.plugin.meta.gson.ModMetadataCollectionAdapter.java
public final class ModMetadataCollectionAdapter extends TypeAdapter<List<PluginMetadata>> { public static final ModMetadataCollectionAdapter DEFAULT = new ModMetadataCollectionAdapter( ModMetadataAdapter.DEFAULT); private final ModMetadataAdapter metadataAdapter;
From source file org.sprintapi.hyperdata.gson.HyperDataTypeAdapter.java
public class HyperDataTypeAdapter extends TypeAdapter<Object> { private final ConstructorConstructor constructorConstructor; private final ObjectConstructor<Object> constructor; private final Map<String, BoundField> boundFields; private final Gson gson;
From source file org.syphr.lametrictime.api.common.impl.typeadapters.imported.TemporalTypeAdapter.java
/** * Abstract type adapter for jsr310 date-time types. * * @author Christophe Bornet */ abstract class TemporalTypeAdapter<T> extends TypeAdapter<T> {
From source file org.syphr.sleepiq.api.impl.typeadapters.TemporalTypeAdapter.java
/** * Abstract type adapter for jsr310 date-time types. * * @author Christophe Bornet */ abstract class TemporalTypeAdapter<T> extends TypeAdapter<T> {
From source file org.terasology.persistence.typeHandling.gson.GsonTypeHandlerAdapter.java
/**
* Adapts a {@link TypeHandler} as a Gson {@link TypeAdapter}. Instances of {@link GsonTypeHandlerAdapter},
* 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 GsonTypeHandlerAdapter#typeHandler}.
*
* Since instances of {@link GsonTypeHandlerAdapter} require a {@link Gson} object and a