List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file com.auction.commons.HibernateProxyTypeAdapter.java
/** * * @author alamgir */ public class HibernateProxyTypeAdapter extends TypeAdapter<HibernateProxy> {
From source file com.bzcentre.dapiPush.ReceipientTypeAdapter.java
public class ReceipientTypeAdapter extends TypeAdapter<Receipient> { private final static String TAG = "[ReceipientTypeAdapter]"; @Override public void write(JsonWriter out, Receipient receipient) throws IOException { out.beginObject();
From source file com.cardinity.json.UtcDateTypeAdapter.java
public final class UtcDateTypeAdapter extends TypeAdapter<Date> { private final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone("UTC"); @Override public void write(JsonWriter out, Date date) throws IOException { if (date == null) {
From source file com.coviu.core.JSON.java
/** * Gson TypeAdapter for Joda DateTime type */ class DateTimeTypeAdapter extends TypeAdapter<DateTime> { private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
From source file com.dampcake.gson.immutable.DelegateAdapter.java
/** * A {@link TypeAdapter} that transforms the object returned by a delegate {@link TypeAdapter}. * * @author Adam Peck */ public abstract class DelegateAdapter<T> extends TypeAdapter<T> {
From source file com.dangdang.ddframe.job.api.config.impl.AbstractJobConfigurationGsonTypeAdapter.java
/**
* ?Json??.
*
* @param <T> ?
*
* @author zhangliang
From source file com.dangdang.ddframe.job.util.AbstractJobConfigurationGsonTypeAdapter.java
/**
* ?Json??.
*
* @param <T> ?
*
* @author zhangliang
From source file com.dangdang.ddframe.job.util.json.AbstractJobConfigurationGsonTypeAdapter.java
/**
* ?Json??.
*
* @param <T> ?
*
* @author zhangliang
From source file com.datastore_android_sdk.serialization.DateTypeAdapter.java
/** * Type adapter that performs translation between BIGINT and Date data type over * a 'Date' class. */ public final class DateTypeAdapter extends TypeAdapter<Date> { public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory() {
From source file com.datastore_android_sdk.serialization.TypeAdapterRuntimeTypeWrapper.java
/**
* An adapter that tries to retrieve a better type adatper based on the runtime type of the object.
*
* @author Stanley Lam
*
* @param <T> the type of the field reflected on