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 com.greensopinion.finance.services.persistence.TransactionsTypeAdapter.java

class TransactionsTypeAdapter extends TypeAdapter<Transactions> {

    private static final String NAME_TRANSACTIONS = "transactions";

    public static TypeAdapterFactory factory(EncryptorProviderService encryptorProviderService) {
        return new TypeAdapterFactory() {

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

public class GsonWrappedListTypedAdapter<U extends MithraObject, T extends MithraList<U>>
        extends TypeAdapter<SerializedList<U, T>> {
    private Class typeClass;

    public GsonWrappedListTypedAdapter(Class typeClass) {
        this.typeClass = typeClass;

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

public class GsonWrappedTypedAdapter<T extends MithraObject> extends TypeAdapter<Serialized<T>> {
    private Class typeClass;

    public GsonWrappedTypedAdapter(Class typeClass) {
        this.typeClass = typeClass;
    }

From source file com.hpzc.common.json.MyDateTypeAdapter.java

/**
 * Adapter for Date. Although this class appears stateless, it is not.
 * DateFormat captures its time zone and locale when it is created, which gives
 * this class state. DateFormat isn't thread safe either, so this class has
 * to synchronize its read and write methods.
 */

From source file com.ibasco.agql.protocols.valve.dota2.webapi.adapters.Dota2TeamInfoAdapter.java

public class Dota2TeamInfoAdapter extends TypeAdapter<Dota2MatchTeamInfo> {
    @Override
    public Dota2MatchTeamInfo read(JsonReader in) throws IOException {
        in.beginObject();
        Dota2MatchTeamInfo teamInfo = new Dota2MatchTeamInfo();
        while (in.hasNext()) {

From source file com.ibm.og.util.json.type.SizeUnitTypeAdapter.java

/**
 * A type adapter for {@code SizeUnit} that allows for a variety of unit name strings to be used in
 * place of the enum name
 * 
 * @see Units
 * @since 1.0

From source file com.ibm.og.util.json.type.TimeUnitTypeAdapter.java

/**
 * A type adapter for {@code TimeUnit} that allows for a variety of unit name strings to be used in
 * place of the enum name
 * 
 * @see Units
 * @since 1.0

From source file com.ibm.watson.developer_cloud.alchemy.v1.model.TypedEntitiesAdapter.java

/**
 * Created by nastacio on 7/2/2016
 */
public class TypedEntitiesAdapter extends TypeAdapter<List<TypedEntity>> {

    @Override

From source file com.ibm.watson.developer_cloud.alchemy.v1.util.ImageKeywordTypeAdapter.java

/**
 * Type Adapter for the {@link ImageKeyword} class.
 */
public class ImageKeywordTypeAdapter extends TypeAdapter<ImageKeyword> {

    /*

From source file com.ibm.watson.developer_cloud.alchemy.v1.util.PublicationDateTypeAdapter.java

/**
 * The Class PublicationDateTypeAdapter.
 */
public class PublicationDateTypeAdapter extends TypeAdapter<PublicationDate> {

    /** The Constant log. */