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 me.albinmathew.celluloid.api.http.ItemTypeAdapterFactory.java

/**
 * The  Item type adapter factory.
 *
 * @author albin
 * @date 2 /2/16
 */

From source file me.drall.popularmovies.data.api.configuration.AutoValueGsonFactory.java

@GsonTypeAdapterFactory
public abstract class AutoValueGsonFactory implements TypeAdapterFactory {
    @Override
    public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
        return null;
    }

From source file me.philio.disqus.api.gson.BlacklistsEntryTypeAdapterFactory.java

/**
 * A {@link TypeAdapterFactory} to handle different {@link Entry} responses
 */
public class BlacklistsEntryTypeAdapterFactory implements TypeAdapterFactory {

    @Override

From source file me.philio.disqus.api.gson.PostTypeAdapterFactory.java

/**
 * A {@link TypeAdapterFactory} to handle different {@link Post} responses
 */
public class PostTypeAdapterFactory implements TypeAdapterFactory {

    @Override

From source file me.philio.disqus.api.gson.ThreadTypeAdapterFactory.java

/**
 * A {@link TypeAdapterFactory} to handle different {@link Thread} responses
 */
public class ThreadTypeAdapterFactory implements TypeAdapterFactory {

    @Override

From source file mobi.tattu.utils.persistance.datastore.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 mx.openpay.client.serialization.OpenpayTypeAdapterFactory.java

/**
 * Allows modifying the generated JSON Element before serialization and after deserialization.
 * @author elopez
 */
public abstract class OpenpayTypeAdapterFactory<C> implements TypeAdapterFactory {

From source file myeslib3.example1.utils.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 net.billforward.gson.typeadapters.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

From source file net.chris54721.infinitycubed.utils.LowercaseEnumTypeAdapterFactory.java

public class LowercaseEnumTypeAdapterFactory implements TypeAdapterFactory {
    public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
        @SuppressWarnings("unchecked")
        Class<T> rawType = (Class<T>) type.getRawType();
        if (!rawType.isEnum()) {
            return null;