List of usage examples for com.google.gson TypeAdapterFactory interface-usage
From source file org.smartparam.manager.json.vendor.gson.LevelKeySerializer.java
/** * * @author Adam Dubiel */ public class LevelKeySerializer implements TypeAdapterFactory {
From source file org.smartparam.manager.json.vendor.gson.ParameterDiffSerializer.java
/** * * @author Adam Dubiel */ public class ParameterDiffSerializer implements TypeAdapterFactory {
From source file org.smartparam.manager.json.vendor.gson.ParameterEntryDiffSerializer.java
/** * * @author Adam Dubiel */ public class ParameterEntryDiffSerializer implements TypeAdapterFactory {
From source file org.smartparam.manager.json.vendor.gson.ParameterEntryKeySerializer.java
/** * * @author Adam Dubiel */ public class ParameterEntryKeySerializer implements TypeAdapterFactory {
From source file org.sprintapi.hyperdata.gson.HyperDataAdapterFactory.java
public class HyperDataAdapterFactory extends ReflectiveTypeAdapterFactory implements TypeAdapterFactory {
ConstructorConstructor constructorConstructor;
FieldNamingStrategy fieldNamingPolicy;
Excluder excluder;
From source file org.syphr.lametrictime.api.common.impl.typeadapters.imported.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.terasology.persistence.typeHandling.gson.GsonTypeHandlerAdapterFactory.java
/** * A Gson {@link TypeAdapterFactory} that creates a {@link GsonTypeHandlerAdapter} for each * {@link TypeHandler} registered in the {@link #typeHandlerMap}. */ public class GsonTypeHandlerAdapterFactory implements TypeAdapterFactory { private Map<Class<?>, TypeHandler<?>> typeHandlerMap;
From source file org.terasology.persistence.typeHandling.gson.GsonTypeSerializationLibraryAdapterFactory.java
/** * A Gson {@link TypeAdapterFactory} that dynamically looks up the {@link TypeHandler} from a * {@link TypeSerializationLibrary} for each type encountered, and creates a {@link GsonTypeHandlerAdapter} with * the retrieved {@link TypeHandler}. */ public class GsonTypeSerializationLibraryAdapterFactory implements TypeAdapterFactory {
From source file org.terasology.persistence.typeHandling.gson.PolymorphicTypeAdapterFactory.java
/**
* A {@link TypeAdapterFactory} that generates type adapters which read and write type information for
* sub-types of the given base type. The type information allows the generated type adapters to dynamically
* identify which sub-type instance is being read or written when it is given a base type reference.
*
* @param <T> The base type.
From source file org.terasology.utilities.gson.CaseInsensitiveEnumTypeAdapterFactory.java
/** * A Gson Adapter factory for supporting enums in a case-insensitive manner * * @author Immortius */ public class CaseInsensitiveEnumTypeAdapterFactory implements TypeAdapterFactory {