List of usage examples for com.google.gson JsonSerializer interface-usage
From source file edu.mit.media.funf.config.DefaultScheduleSerializer.java
public class DefaultScheduleSerializer implements JsonSerializer<DefaultSchedule> { private static final String VALUE = "value", INTERVAL = "interval", DURATION = "duration", OPPORTUNISTIC = "opportunistic", STRICT = "strict"; static {
From source file edu.tu_berlin.ise.opendata.blume.DailyMeasurementsSerializer.java
/** * Created by aardila on 7/5/17. */ class DailyMeasurementsSerializer implements JsonSerializer<DailyMeasurements> { @Override
From source file edu.wpi.cs.wpisuitetng.modules.core.models.UserSerializer.java
public class UserSerializer implements JsonSerializer<User> { @Override public JsonElement serialize(User u, Type t, JsonSerializationContext context) { JsonObject deflated = new JsonObject();
From source file es.us.isa.aml.parsers.agreements.json.InterfaceAdapterExpression.java
/**
* Applied Software Engineering Research Group (ISA Group) University of
* Sevilla, Spain
*
* @author Manuel Arenillas <marenillas@us.es>
* @version 1.0
From source file es.us.isa.aml.parsers.agreements.json.InterfaceAdapterInteger.java
/**
* Applied Software Engineering Research Group (ISA Group) University of
* Sevilla, Spain
*
* @author Manuel Arenillas <marenillas@us.es>
* @version 1.0
From source file eu.focusnet.app.model.gson.DateTypeAdapter.java
/** * DateTypeAdapter is used by the GSON parser to serialize and deserialize DateTime formats */ public class DateTypeAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> { private final DateFormat dateFormat;
From source file eu.operando.core.pdb.client.JSON.java
class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> { private final ApiClient apiClient; /** * Constructor for DateAdapter *
From source file eu.vranckaert.worktime.web.json.model.DateTimeSerializer.java
/** * User: Dirk Vranckaert * Date: 3/01/13 * Time: 10:44 */ public class DateTimeSerializer implements JsonSerializer<Date> {
From source file ezbake.services.search.utils.BooleanSerializer.java
public class BooleanSerializer implements JsonSerializer<Boolean>, JsonDeserializer<Boolean> { @Override public JsonElement serialize(Boolean arg0, Type arg1, JsonSerializationContext arg2) { return new JsonPrimitive(arg0 ? 1 : 0); }
From source file feipai.qiangdan.core.DateFormatter.java
/** * Formatter for date formats present in the GitHub v2 and v3 API. */ public class DateFormatter implements JsonDeserializer<Date>, JsonSerializer<Date> { private final DateFormat[] formats;