List of usage examples for com.google.gson JsonSerializer interface-usage
From source file abtlibrary.utils.as24ApiClient.JSON.java
class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> { private final ApiClient apiClient; /** * Constructor for DateAdapter *
From source file allout58.mods.techtree.tree.ItemStackGSON.java
/** * Created by James Hollowell on 12/29/2014. */ public class ItemStackGSON implements JsonSerializer<ItemStack>, JsonDeserializer<ItemStack> { @Override
From source file allout58.mods.techtree.tree.TechNodeGSON.java
/** * Created by James Hollowell on 12/7/2014. */ //This has to be registered with the GsonBuilder //EXAMPLE: gsonBuilder.registerTypeAdapter(TechNode.class, new TechNodeGSON());
From source file angularBeans.util.AngularBeansUtil.java
class ByteArrayJsonAdapter implements JsonSerializer<LobWrapper> { Object container; ByteArrayCache cache; public ByteArrayJsonAdapter(ByteArrayCache cache) {
From source file angularBeans.util.AngularBeansUtils.java
class LobWrapperJsonAdapter implements JsonSerializer<LobWrapper> { Object container; ByteArrayCache cache; public LobWrapperJsonAdapter(ByteArrayCache cache) {
From source file ar.com.wolox.wolmo.networking.retrofit.serializer.LocalDateSerializer.java
/**
* Transforms a serialized {@link JsonElement} representing a {@link java.util.Date} into
* a {@link LocalDate} instance. It also works the other way around, serializing a {@link LocalDate}
* into a {@link JsonElement}.
* <p>
* This class is useful for sending and receiving {@link java.util.Date} instances over the network.
From source file bootwildfly.ProblemaJsonSerializer.java
/** * * @author benoni */ public class ProblemaJsonSerializer implements JsonSerializer<Problema> {
From source file br.com.caelum.vraptor.serialization.gson.CalendarGsonConverter.java
/**
* Deserialize {@link Calendar} using ISO8601 format. This class must be in {@link Dependent} to allow us to
* discover generic type.
*
* @author Otvio Garcia
* @since 4.0.0
From source file br.com.caelum.vraptor.serialization.gson.DateGsonConverter.java
/**
* Deserialize {@link Date} using ISO8601 format.
* This class must be in {@link Dependent} to allow us to discover generic type.
*
* @author Rodrigo Turini
* @since 4.0.0
From source file br.com.caelum.vraptor.serialization.gson.MessageGsonConverter.java
/**
* Serializes {@link Message} object. This class must be in {@link Dependent} to allow us to
* discover generic type.
*
* @author Otvio Garcia
* @since 4.0.0