Example usage for com.google.gson TypeAdapter subclass-usage

List of usage examples for com.google.gson TypeAdapter subclass-usage

Introduction

In this page you can find the example usage for com.google.gson TypeAdapter subclass-usage.

Usage

From source file br.cefetmg.radar.util.typeadapter.HibernateProxyTypeAdapter.java

/**
 * This TypeAdapter unproxies Hibernate proxied objects, and serializes them
 * through the registered (or default) TypeAdapter of the base class.
 */
public class HibernateProxyTypeAdapter extends TypeAdapter<HibernateProxy> {

From source file br.com.bean.Utilitarios.HibernateProxyTypeAdapter.java

/**
 *
 * @author Delmiglio
 */
public class HibernateProxyTypeAdapter extends TypeAdapter<HibernateProxy> {

From source file br.com.caelum.restfulie.gson.converters.DateTypeAdapter.java

/**
 * Adapter for Date. Although this class appears stateless, it is not.
 * DateFormat captures its time zone and locale when it is created, which gives
 * this class state. DateFormat isn't thread safe either, so this class has
 * to synchronize its read and write methods.
 */

From source file cc.kave.commons.utils.json.legacy.UsageTypeAdapter.java

public class UsageTypeAdapter extends TypeAdapter<Usage> {

    // make sure the naming is consistent to the field names in "Query",
    // "DefinitionSite" and "CallSite"

    private static final String TYPE = "type";

From source file cc.recommenders.utils.gson.UsageTypeAdapter.java

public class UsageTypeAdapter extends TypeAdapter<Usage> {

    // make sure the naming is consistent to the field names in "Query",
    // "DefinitionSite" and "CallSite"

    private static final String TYPE = "type";

From source file cern.molr.inspector.json.MissionTypeAdapter.java

/**
 * A GSON serialiser and de-serialiser for {@link Mission} objects.
 */
public class MissionTypeAdapter extends TypeAdapter<Mission> {

    private static final String LIST_SEPARATOR = ",";

From source file cloud.artik.client.JSON.java

/**
 * Gson TypeAdapter for Joda DateTime type
 */
class DateTimeTypeAdapter extends TypeAdapter<DateTime> {

    private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();

From source file cn.ieclipse.af.demo.sample.volley.adapter.IntAdapter.java

/**
 * int?float??
 *
 * @author wangjian
 * @date 2016-08-08.
 */

From source file cn.ieclipse.af.demo.sample.volley.adapter.StringAdapter.java

/**
 * nullstring""
 *
 * @author wangjian
 * @date 2016-08-08.
 */

From source file cn.ieclipse.af.demo.sample.volley.adapter.TypeAdapterRuntimeTypeWrapper.java

public class TypeAdapterRuntimeTypeWrapper<T> extends TypeAdapter<T> {
    private final Gson context;
    private final TypeAdapter<T> delegate;
    private final Type type;

    TypeAdapterRuntimeTypeWrapper(Gson context, TypeAdapter<T> delegate, Type type) {