List of usage examples for com.google.gson JsonSerializer interface-usage
From source file filesync.io.json.PreferencesSerializer.java
/** * * @author Aaron Lucia * @version Aug 15, 2015 */ public class PreferencesSerializer implements JsonSerializer<Preferences>, JsonDeserializer<Preferences> {
From source file filesync.io.json.SyncDirectorySerializer.java
/** * * @author Aaron Lucia * @version Aug 15, 2015 */ public class SyncDirectorySerializer implements JsonSerializer<SyncDirectory>, JsonDeserializer<SyncDirectory> {
From source file filesync.io.json.SyncFileSerializer.java
/** * * @author Aaron Lucia * @version Aug 15, 2015 */ public class SyncFileSerializer implements JsonSerializer<SyncFile>, JsonDeserializer<SyncFile> {
From source file filesync.io.json.SyncIndexSerializer.java
/** * * @author Aaron Lucia * @version Aug 15, 2015 */ public class SyncIndexSerializer implements JsonSerializer<SyncIndex>, JsonDeserializer<SyncIndex> {
From source file fr.eurecom.nerd.core.gson.SRTAdapter.java
public class SRTAdapter implements JsonSerializer<TEntity> { public JsonElement serialize(TEntity entity, Type type, JsonSerializationContext jsc) { JsonObject jo = new JsonObject(); jo.addProperty("idEntity", entity.getIdEntity()); jo.addProperty("label", entity.getLabel()); jo.addProperty("extractorType", entity.getExtractorType());
From source file fr.eurecom.nerd.core.gson.TextAdapter.java
public class TextAdapter implements JsonSerializer<TEntity> { public JsonElement serialize(TEntity entity, Type type, JsonSerializationContext jsc) { JsonObject jo = new JsonObject(); jo.addProperty("idEntity", entity.getIdEntity()); jo.addProperty("label", entity.getLabel()); jo.addProperty("extractorType", entity.getExtractorType());
From source file fr.itinerennes.api.client.gson.DateTypeAdapter.java
/** * @author Jeremie Huchet */ public class DateTypeAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> { private final DateFormat dateFormatter;
From source file fr.itinerennes.api.client.gson.LocaleTypeAdapter.java
/** * @author Jeremie Huchet */ public class LocaleTypeAdapter implements JsonSerializer<Locale>, JsonDeserializer<Locale> { @Override
From source file fr.itinerennes.api.client.gson.TimeTypeAdapter.java
/** * @author Jeremie Huchet */ public class TimeTypeAdapter implements JsonSerializer<Time>, JsonDeserializer<Time> { @Override