List of usage examples for com.google.gson JsonSerializer interface-usage
From source file com.gs.reladomo.serial.gson.GsonWrappedSerializer.java
public class GsonWrappedSerializer implements JsonSerializer<Serialized> { @Override public JsonElement serialize(Serialized serialized, Type type, JsonSerializationContext gsonContext) { GsonReladomoSerialWriter writer = new GsonReladomoSerialWriter(); GsonRelodomoSerialContext gsonRelodomoSerialContext = new GsonRelodomoSerialContext(serialized.getConfig(), writer, gsonContext);
From source file com.gst.infrastructure.core.api.JodaDateTimeAdapter.java
/** * Serializer for joda time {@link DateTime} that returns date as long to match * previous functionality. */ public class JodaDateTimeAdapter implements JsonSerializer<DateTime> {
From source file com.gst.infrastructure.core.api.JodaLocalDateAdapter.java
/** * Serializer for joda time {@link LocalDate} that returns date in array format * to match previous jackson functionality. */ public class JodaLocalDateAdapter implements JsonSerializer<LocalDate> {
From source file com.gst.infrastructure.core.api.JodaMonthDayAdapter.java
/** * Serializer for joda time {@link MonthDay} that returns date in array format * to match previous jackson functionality. */ public class JodaMonthDayAdapter implements JsonSerializer<MonthDay> {
From source file com.hawk.lib.base.model.jwdate.ZonedDateTimeJsonConverter.java
/** * GSON serialiser/deserialiser for converting {@link ZonedDateTime} objects. */ public class ZonedDateTimeJsonConverter implements JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDateTime> { /** Formatter. */ private final DateTimeFormatter mDateTimeFormatter;
From source file com.heroiclabs.sdk.android.util.json.DatastoreItemPermissionsReadJsonAdapter.java
/** * Serializer and deserializer for DatastoreItem.Permissions.Read entities. */ public class DatastoreItemPermissionsReadJsonAdapter implements JsonSerializer<DatastoreItem.Permissions.Read>, JsonDeserializer<DatastoreItem.Permissions.Read> {
From source file com.heroiclabs.sdk.android.util.json.DatastoreItemPermissionsWriteJsonAdapter.java
/** * Serializer and deserializer for DatastoreItem.Permissions.Write entities. */ public class DatastoreItemPermissionsWriteJsonAdapter implements JsonSerializer<DatastoreItem.Permissions.Write>, JsonDeserializer<DatastoreItem.Permissions.Write> {
From source file com.hisign.sso.common.gson.CustDateTypeAdapter.java
/**
* This type adapter supports three subclasses of date: Date, Timestamp, and
* java.sql.Date.
*
* @author Inderjeet Singh
* @author Joel Leitch
From source file com.hp.ov.sdk.adaptors.PortTelemetrySerializationAdapter.java
public class PortTelemetrySerializationAdapter implements JsonSerializer<PortTelemetry>, JsonDeserializer<PortTelemetry> { @Override public PortTelemetry deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
From source file com.hp.ov.sdk.adaptors.StoragePoolSerializationAdapter.java
public class StoragePoolSerializationAdapter implements JsonSerializer<StoragePool>, JsonDeserializer<StoragePool> { @Override public StoragePool deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {