Example usage for com.google.gson TypeAdapterFactory interface-usage

List of usage examples for com.google.gson TypeAdapterFactory interface-usage

Introduction

In this page you can find the example usage for com.google.gson TypeAdapterFactory interface-usage.

Usage

From source file com.singhinderjeet.gracenoteapi.json.GracenoteApiTypeAdapterFactory.java

/**
 * Gson factory for parsing JSON into model classes.
 *
 * @author Inderjeet Singh
 */
public class GracenoteApiTypeAdapterFactory implements TypeAdapterFactory {

From source file com.squareup.wire.WireTypeAdapterFactory.java

/**
 * A {@link TypeAdapterFactory} that allows Wire messages to be serialized and deserialized
 * using the GSON Json library. To create a {@link Gson} instance that works with Wire,
 * use the {@link com.google.gson.GsonBuilder} interface:
 *
 * <pre>

From source file com.truethat.android.external.gson.RuntimeTypeAdapterFactory.java

/**
 * Adapts values whose runtime type may differ from their declaration type. This
 * is necessary when a field's type is not the same type that GSON should create
 * when deserializing that field. For example, consider these types:
 * <pre>   {@code
 *   abstract class Shape {

From source file com.truethat.backend.external.RuntimeTypeAdapterFactory.java

/**
 * Adapts values whose runtime type may differ from their declaration type. This is necessary when a
 * field's type is not the same type that GSON should create when deserializing that field. For
 * example, consider these types:
 * <pre>   {@code
 *   abstract class Shape {

From source file com.twitter.sdk.android.core.models.SafeListAdapter.java

public class SafeListAdapter implements TypeAdapterFactory {

    @Override
    public <T> TypeAdapter<T> create(final Gson gson, final TypeToken<T> tokenType) {
        final TypeAdapter<T> delegate = gson.getDelegateAdapter(this, tokenType);

From source file com.twitter.sdk.android.core.models.SafeMapAdapter.java

public class SafeMapAdapter implements TypeAdapterFactory {

    @Override
    public <T> TypeAdapter<T> create(final Gson gson, final TypeToken<T> tokenType) {
        final TypeAdapter<T> delegate = gson.getDelegateAdapter(this, tokenType);

From source file com.vaadin.addon.charts.model.gsonhelpers.AbstractSeriesTypeAdapterFactory.java

public class AbstractSeriesTypeAdapterFactory implements TypeAdapterFactory {

    public AbstractSeriesTypeAdapterFactory() {
    }

    @SuppressWarnings("unchecked")

From source file com.vaadin.addon.charts.model.gsonhelpers.DataSeriesItemTypeAdapterFactory.java

public class DataSeriesItemTypeAdapterFactory implements TypeAdapterFactory {

    public DataSeriesItemTypeAdapterFactory() {
    }

    @SuppressWarnings("unchecked")

From source file com.vaadin.addon.charts.model.gsonhelpers.TitleTypeAdapterFactory.java

public class TitleTypeAdapterFactory implements TypeAdapterFactory {

    public TitleTypeAdapterFactory() {
    }

    @SuppressWarnings("unchecked")

From source file com.vmware.xenon.common.serialization.SortedKeysMapViewAdapterFactory.java

/**
 */
public final class SortedKeysMapViewAdapterFactory implements TypeAdapterFactory {

    private static final TypeToken<Map<String, ?>> TYPE = new TypeToken<Map<String, ?>>() {
    };