List of usage examples for com.google.gson JsonDeserializer interface-usage
From source file co.aurasphere.botmill.kik.util.json.IncomingMessagesDeserializer.java
/** * The Class IncomingMessagesDeserializer. * * @author Alvin P. Reyes */ public class IncomingMessagesDeserializer implements JsonDeserializer<MessageCallback> {
From source file co.aurasphere.botmill.telegram.internal.util.json.CalendarFromTimestampJsonDeserializer.java
/** * The Class CalendarFromTimestampJsonDeserializer. */ public class CalendarFromTimestampJsonDeserializer implements JsonDeserializer<Calendar> { /* (non-Javadoc)
From source file co.cask.cdap.api.dataset.lib.ConditionCodec.java
/** * Codec used to serialize and deserialize {@link PartitionFilter.Condition}s. */ public class ConditionCodec extends ComparableCodec implements JsonSerializer<PartitionFilter.Condition>, JsonDeserializer<PartitionFilter.Condition> {
From source file co.cask.cdap.api.dataset.lib.partitioned.PartitionKeyCodec.java
/** * Codec used to serialize and deserialize {@link PartitionKey}s. */ public class PartitionKeyCodec extends ComparableCodec implements JsonSerializer<PartitionKey>, JsonDeserializer<PartitionKey> {
From source file co.cask.cdap.common.conf.PluginClassDeserializer.java
/** * A Gson deserializater for creating {@link PluginClass} object from external plugin config file. * Used to verify that required fields are present and property map is never null. */ public class PluginClassDeserializer implements JsonDeserializer<PluginClass> {
From source file co.cask.cdap.common.zookeeper.coordination.DiscoverableCodec.java
/** * A Gson codec for {@link Discoverable}. * * NOTE: This class may move to different package when needed. */ public class DiscoverableCodec implements JsonSerializer<Discoverable>, JsonDeserializer<Discoverable> {
From source file co.cask.cdap.common.zookeeper.coordination.ResourceAssignmentTypeAdapter.java
/** * The Gson codec for {@link ResourceAssignment}. */ class ResourceAssignmentTypeAdapter implements JsonSerializer<ResourceAssignment>, JsonDeserializer<ResourceAssignment> {
From source file co.cask.cdap.etl.common.SetMultimapCodec.java
/**
* Codec to serialize/deserialize a Multimap using Gson.
*
* @param <K> multimap key type
* @param <V> multimap val type
*/
From source file co.cask.cdap.etl.mock.realtime.StructuredRecordCodec.java
/** * Codec for serializing, deserializing {@link StructuredRecord}. */ public class StructuredRecordCodec implements JsonDeserializer<StructuredRecord>, JsonSerializer<StructuredRecord> { @Override
From source file co.cask.cdap.etl.spark.batch.DatasetInfoTypeAdapter.java
/** * Type adapter for {@link DatasetInfo} */ public class DatasetInfoTypeAdapter implements JsonSerializer<DatasetInfo>, JsonDeserializer<DatasetInfo> { private static final Type mapType = new TypeToken<Map<String, String>>() { }.getType();