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 se.joelpet.android.toyreaderforreddit.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
 *   abstract class Shape {

From source file serialization.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 sg.edu.nus.taptask.model.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 su.iota.backend.misc.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 teste.adapter.ArrayAdapterFactory.java

public class ArrayAdapterFactory implements TypeAdapterFactory {

    @SuppressWarnings({ "unchecked", "rawtypes" })
    @Override
    public <T> TypeAdapter<T> create(final Gson gson, final TypeToken<T> type) {

From source file TestGenerator.ArgumentCache.UniversalCollectionTypeAdapterFactory.java

/**
 * Adapt a homogeneous collection of objects.
 */
public final class UniversalCollectionTypeAdapterFactory implements TypeAdapterFactory {
    private ConstructorConstructor constructorConstructor;

From source file uk.ac.stfc.isis.ibex.epics.conversion.json.LowercaseEnumTypeAdapterFactory.java

/**
 * A lowercase enum adapter factory.
 */
public class LowercaseEnumTypeAdapterFactory implements TypeAdapterFactory {

    /**

From source file uk.co.alt236.thejsonappyouaskedfor.data.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 deserialising that field. For example, consider these types:
 * <pre>   {@code
 *   abstract class Shape {

From source file util.android.gson.ArrayAdapterFactory.java

public class ArrayAdapterFactory implements TypeAdapterFactory {

    @SuppressWarnings({ "unchecked", "rawtypes" })
    @Override
    public <T> TypeAdapter<T> create(final Gson gson, final TypeToken<T> type) {

From source file xyz.truenight.support.realm.RealmModelAdapterFactory.java

class RealmModelAdapterFactory implements TypeAdapterFactory {

    private final RealmHook hook;

    public RealmModelAdapterFactory(RealmHook hook) {
        this.hook = hook;