List of usage examples for com.google.gson JsonSerializer interface-usage
From source file com.cognifide.aet.vs.metadata.MapSerializer.java
class MapSerializer implements JsonSerializer<Map<?, ?>> { @Override public JsonElement serialize(Map<?, ?> src, Type typeOfSrc, JsonSerializationContext context) { if (src == null || src.isEmpty()) { return null;
From source file com.cognifide.aet.vs.metadata.TimestampSerializer.java
class TimestampSerializer implements JsonSerializer<Suite.Timestamp>, JsonDeserializer<Suite.Timestamp> { @Override public JsonElement serialize(Suite.Timestamp src, Type typeOfSrc, JsonSerializationContext context) { return src == null ? null : new JsonPrimitive(src.get()); }
From source file com.contentful.java.cma.FieldTypeAdapter.java
/** * FieldTypeAdapter. */ final class FieldTypeAdapter implements JsonSerializer<CMAField> { private static final String ATTR_ID = "id"; private static final String ATTR_NAME = "name";
From source file com.contentful.java.cma.gson.FieldTypeAdapter.java
/** * FieldTypeAdapter. */ public final class FieldTypeAdapter implements JsonSerializer<CMAField> { private static final String ATTR_ID = "id"; private static final String ATTR_NAME = "name";
From source file com.continuuity.loom.codec.json.AbstractCodec.java
/** * Utility methods for serializing and deserializing objects to/from json. * * @param <T> Type of object to serialize and deserialize. */ public abstract class AbstractCodec<T> implements JsonSerializer<T>, JsonDeserializer<T> {
From source file com.continuuity.loom.codec.json.current.ResourceCollectionCodec.java
/** * Codec for serializing a {@link com.continuuity.loom.provisioner.plugin.ResourceCollection} * for use in sending requests to provisioners. */ public class ResourceCollectionCodec implements JsonSerializer<ResourceCollection> {
From source file com.continuuity.weave.internal.json.ArgumentsCodec.java
/** * */ public final class ArgumentsCodec implements JsonSerializer<Arguments>, JsonDeserializer<Arguments> { @Override
From source file com.continuuity.weave.internal.json.LocalFileCodec.java
/** * */ public final class LocalFileCodec implements JsonSerializer<LocalFile>, JsonDeserializer<LocalFile> { @Override
From source file com.continuuity.weave.internal.json.ResourceReportCodec.java
/** * Codec for serializing and deserializing a {@link ResourceReport} object using json. */ public final class ResourceReportCodec implements JsonSerializer<ResourceReport>, JsonDeserializer<ResourceReport> { @Override
From source file com.continuuity.weave.internal.json.ResourceSpecificationCodec.java
/** * */ final class ResourceSpecificationCodec implements JsonSerializer<ResourceSpecification>, JsonDeserializer<ResourceSpecification> {