List of usage examples for com.google.gson TypeAdapterFactory interface-usage
From source file cn.ieclipse.af.demo.sample.volley.adapter.CollectionsAdapter.java
/**
* CollectionsAdapter??null
*
* @author wangjian
* @date 2016-08-08.
*/
From source file co.aurasphere.botmill.kik.util.json.LowerCaseTypeAdapterFactory.java
/** * A factory for creating LowerCaseTypeAdapter objects. * * @author Alvin P. Reyes */ public class LowerCaseTypeAdapterFactory implements TypeAdapterFactory {
From source file co.aurasphere.botmill.skype.util.json.LowerCaseTypeAdapterFactory.java
/** * A factory for creating LowerCaseTypeAdapter objects. * * @author Alvin P. Reyes */ public class LowerCaseTypeAdapterFactory implements TypeAdapterFactory {
From source file co.cask.cdap.common.io.CaseInsensitiveEnumTypeAdapterFactory.java
/** * Type adapter that serializes enums in lowercase and deserializes enums in a case insensitive way. * Taken straight from the example in TypeAdapterFactory javadocs except deserializes in a case insenstivie way * instead of deserializing lowercase only. */ public class CaseInsensitiveEnumTypeAdapterFactory implements TypeAdapterFactory {
From source file co.forsaken.projectindigo.utils.mojangtokens.EnumTypeAdapterFactory.java
public class EnumTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) { if (!type.getRawType().isEnum()) {
From source file com.actimem.blog.gson.customtypeadapters.CustomTypeAdapterFactory.java
public class CustomTypeAdapterFactory implements TypeAdapterFactory { private Map<Class, TypeAdapter> typeAdaptersMap = new HashMap<>(); public <T> void add(Class<T> clazz, TypeAdapter<T> typeAdapter) { typeAdaptersMap.put(clazz, typeAdapter); }
From source file com.alucas.snorlax.module.util.GsonAdapterFactory.java
@GsonTypeAdapterFactory public abstract class GsonAdapterFactory implements TypeAdapterFactory { public static TypeAdapterFactory create() { return new AutoValueGson_GsonAdapterFactory(); }
From source file com.amal.nodelogin.model.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 com.android.fastlibrary.util.AutoValueAdapterFactory.java
/**
* Do one thing at a time, and do well!
*
* @Prject: FugaoApps
* @Location: com.fugao.common.util.AutoValueAdapterFactory
* @Description: TODO
From source file com.atlauncher.data.mojang.EnumTypeAdapterFactory.java
public class EnumTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) { if (!type.getRawType().isEnum()) {