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 org.eclipse.smarthome.storage.json.PropertiesTypeAdapterFactory.java

/**
 * TypeAdapterFactory responsible for returning a new instance of {@link PropertiesTypeAdapter} if the given type
 * matches Map<String, Object>
 * or null otherwise.
 *
 * @author Ivan Iliev

From source file org.eclipse.smarthome.storage.mapdb.internal.PropertiesTypeAdapterFactory.java

/**
 * TypeAdapterFactory responsible for returning a new instance of {@link PropertiesTypeAdapter} if the given type
 * matches Map<String, Object>
 * or null otherwise.
 *
 * @author Ivan Iliev

From source file org.eclipse.smarthome.storage.mapdb.PropertiesTypeAdapterFactory.java

/**
 * TypeAdapterFactory responsible for returning a new instance of {@link PropertiesTypeAdapter} if the given type
 * matches Map<String, Object>
 * or null otherwise.
 *
 * @author Ivan Iliev

From source file org.edx.mobile.model.course.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 org.hibernate.search.backend.elasticsearch.gson.impl.AbstractConfiguredExtraPropertiesJsonAdapterFactory.java

/**
 * @author Yoann Rodiere
 */
public abstract class AbstractConfiguredExtraPropertiesJsonAdapterFactory implements TypeAdapterFactory {

    @Override

From source file org.hibernate.search.elasticsearch.gson.impl.AbstractConfiguredExtraPropertiesJsonAdapterFactory.java

/**
 * @author Yoann Rodiere
 */
public abstract class AbstractConfiguredExtraPropertiesJsonAdapterFactory implements TypeAdapterFactory {

    @Override

From source file org.hibernate.search.elasticsearch.util.impl.gson.AbstractConfiguredExtraPropertiesJsonAdapterFactory.java

/**
 * @author Yoann Rodiere
 */
public abstract class AbstractConfiguredExtraPropertiesJsonAdapterFactory implements TypeAdapterFactory {

    @Override

From source file org.immutables.mongo.types.TypeAdapters.java

/**
 * Built-in BSON type adapters. Also contains reusable delegate-adapters to easily implement own
 * wrapper if needed. Supports {@link Id}, {@link TimeInstant}, {@link Binary}, {@link Pattern}
 * types which correspond to {@code ObjectID}, {@code UTCDate}, {@code Binary}, {@code Regex} native
 * BSON types, not available in JSON.
 * <p>

From source file org.indonesiax.mobile.model.course.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 org.jclouds.googlecloud.config.ListPageAdapterFactory.java

public final class ListPageAdapterFactory implements TypeAdapterFactory {
    static final class ListPageAdapter extends TypeAdapter<ListPage<?>> {
        private final TypeAdapter<?> itemAdapter;

        ListPageAdapter(TypeAdapter<?> itemAdapter) {
            this.itemAdapter = itemAdapter;