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.google.devtools.moe.client.MoeTypeAdapterFactory.java

@GsonTypeAdapterFactory
public abstract class MoeTypeAdapterFactory implements TypeAdapterFactory {
    public static TypeAdapterFactory create() {
        return new AutoValueGson_MoeTypeAdapterFactory();
    }
}

From source file com.gs.reladomo.serial.gson.GsonWrappedTypeAdaptorFactory.java

public class GsonWrappedTypeAdaptorFactory implements TypeAdapterFactory {
    @Override
    public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) {
        if (Serialized.class.equals(typeToken.getRawType())) {
            Type type = typeToken.getType();
            if (type instanceof ParameterizedType) {

From source file com.gsaul.AethonSimulator.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.hkm.disqus.api.gson.BlacklistsEntryTypeAdapterFactory.java

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

    @Override

From source file com.hkm.disqus.api.gson.PostTypeAdapterFactory.java

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

    @Override

From source file com.hkm.disqus.api.gson.ThreadTypeAdapterFactory.java

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

    @Override

From source file com.ibm.og.json.type.ChoiceConfigTypeAdapterFactory.java

/**
 * A generic choice type adapter factory that can be abstracted over arbitrary types
 * 
 * @see SelectionConfigTypeAdapterFactory
 * @since 1.0
 */

From source file com.ibm.og.json.type.ContainerConfigTypeAdapterFactory.java

public class ContainerConfigTypeAdapterFactory implements TypeAdapterFactory {
    public ContainerConfigTypeAdapterFactory() {
    }

    @Override
    @SuppressWarnings("unchecked")

From source file com.ibm.og.json.type.FilesizeConfigTypeAdapterFactory.java

/**
 * A type adapter for file size that allows for either the full filesize configuration or a decimal
 * that represents average filesize, with all other defaults
 * 
 * @since 1.0
 */

From source file com.ibm.og.json.type.OperationConfigTypeAdapterFactory.java

/**
 * A type adapter factory for operation type configuration that allows for either the complete
 * configuration or a decimal that represents the weight for this operation type
 * 
 * @since 1.0
 */