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 com.oracle.bdcs.bdm.client.JSON.java

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

    private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();

From source file com.ouyangzn.github.json.DoubleAdapter.java

/**
 * Double?
 */
public class DoubleAdapter extends TypeAdapter<Number> {
    @Override
    public void write(JsonWriter jsonWriter, Number number) throws IOException {

From source file com.ouyangzn.github.json.IntegerAdapter.java

/**
 * Integer?
 */
public class IntegerAdapter extends TypeAdapter<Number> {
    @Override
    public void write(JsonWriter jsonWriter, Number number) throws IOException {

From source file com.ouyangzn.github.json.LongAdapter.java

/**
 * Long?
 */
public class LongAdapter extends TypeAdapter<Number> {
    @Override
    public void write(JsonWriter jsonWriter, Number number) throws IOException {

From source file com.owncloud.android.lib.resources.activities.models.RichElementTypeAdapter.java

/**
 * RichElement Parser
 */

public class RichElementTypeAdapter extends TypeAdapter<RichElement> {

From source file com.patloew.countries.util.CountryTypeAdapter.java

public class CountryTypeAdapter extends TypeAdapter<Country> {

    public static final TypeAdapter<Country> INSTANCE = new CountryTypeAdapter().nullSafe();

    private CountryTypeAdapter() {
    }

From source file com.patloew.countries.util.RealmStringListTypeAdapter.java

public class RealmStringListTypeAdapter extends TypeAdapter<RealmList<RealmString>> {

    public static final TypeAdapter<RealmList<RealmString>> INSTANCE = new RealmStringListTypeAdapter().nullSafe();

    private RealmStringListTypeAdapter() {
    }

From source file com.patloew.countries.util.RealmStringMapEntryListTypeAdapter.java

public class RealmStringMapEntryListTypeAdapter extends TypeAdapter<RealmList<RealmStringMapEntry>> {

    public static final TypeAdapter<RealmList<RealmStringMapEntry>> INSTANCE = new RealmStringMapEntryListTypeAdapter()
            .nullSafe();

    private RealmStringMapEntryListTypeAdapter() {

From source file com.pcloud.sdk.internal.networking.serialization.DateTypeAdapter.java

public class DateTypeAdapter extends TypeAdapter<Date> {
    @Override
    public void write(JsonWriter out, Date value) throws IOException {
        if (value == null) {
            out.nullValue();
        } else {

From source file com.pets.core.petstore.data.store.JSONSerializer.java

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

    private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();