Example usage for com.google.gson TypeAdapter subclass-usage

List of usage examples for com.google.gson TypeAdapter subclass-usage

Introduction

In this page you can find the example usage for com.google.gson TypeAdapter subclass-usage.

Usage

From source file se.sics.datamodel.gson.ObjectValueAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */

public class ObjectValueAdapter extends TypeAdapter<ObjectValue> {

From source file se.sics.datamodel.gson.TypeInfoAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */
public class TypeInfoAdapter extends TypeAdapter<TypeInfo> {

    @Override

From source file se.sics.datamodel.gson.ValueHolderAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */
public class ValueHolderAdapter extends TypeAdapter<ValueHolder> {

    @Override

From source file sf.net.experimaestro.scheduler.JsonPathConverter.java

/**
 * Converts a path
 */
public class JsonPathConverter extends TypeAdapter<Path> {
    @Override
    public void write(JsonWriter out, Path value) throws IOException {

From source file sf.net.experimaestro.utils.gson.ByteArrayAdapter.java

/**
 * A JSON adapter
 */
public class ByteArrayAdapter extends TypeAdapter<byte[]> {
    @Override
    public void write(JsonWriter out, byte[] value) throws IOException {

From source file sf.net.experimaestro.utils.gson.JsonAdapter.java

/**
 * Json adapter
 */
public class JsonAdapter extends TypeAdapter<Json> {
    @Override
    public void write(JsonWriter out, Json value) throws IOException {

From source file sf.net.experimaestro.utils.gson.JsonPathAdapter.java

/**
 * A JSON adapter
 */
public class JsonPathAdapter extends TypeAdapter<Path> {
    @Override
    public void write(JsonWriter out, Path value) throws IOException {

From source file teste.adapter.ArrayAdapter.java

public class ArrayAdapter<T> extends TypeAdapter<List<T>> {

    private Class<T> adapterclass;

    public ArrayAdapter(Class<T> adapterclass) {
        this.adapterclass = adapterclass;

From source file TestGenerator.ArgumentCache.UniversalArrayTypeAdapter.java

/**
 * Adapt an array of objects.
 */
public final class UniversalArrayTypeAdapter<E> extends TypeAdapter<Object> {
    public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory() {
        @SuppressWarnings({ "unchecked", "rawtypes" })

From source file TestGenerator.ArgumentCache.UniversalTypeAdapterRuntimeTypeWrapper.java

public class UniversalTypeAdapterRuntimeTypeWrapper<T> extends TypeAdapter<T> {
    private final Gson context;
    private final TypeAdapter<T> delegate;
    private final Type type;

    public UniversalTypeAdapterRuntimeTypeWrapper(Gson context, TypeAdapter<T> delegate, Type type) {