Example usage for com.google.gson JsonDeserializer interface-usage

List of usage examples for com.google.gson JsonDeserializer interface-usage

Introduction

In this page you can find the example usage for com.google.gson JsonDeserializer interface-usage.

Usage

From source file com.github.panthro.JSON.java

class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> {
    private final ApiClient apiClient;

    /**
     * Constructor for DateAdapter
     *

From source file com.github.piasy.base.model.jsr310.ZonedDateTimeJsonConverter.java

/**
 * GSON serialiser/deserialiser for converting {@link ZonedDateTime} objects.
 */
public class ZonedDateTimeJsonConverter implements JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDateTime> {
    /** Formatter. */
    private final DateTimeFormatter mDateTimeFormatter;

From source file com.github.piasy.bootstrap.base.model.jsr310.ZonedDateTimeJsonConverter.java

/**
 * GSON serialiser/deserialiser for converting {@link ZonedDateTime} objects.
 */
public class ZonedDateTimeJsonConverter implements JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDateTime> {
    /** Formatter. */
    private final DateTimeFormatter mDateTimeFormatter;

From source file com.github.piasy.common.android.utils.model.CustomZonedDateTimeConverter.java

/**
 * GSON serialiser/deserialiser for converting {@link ZonedDateTime} objects.
 */
public class CustomZonedDateTimeConverter
        implements JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDateTime> {
    /** Formatter. */

From source file com.github.tddts.jet.config.gson.LocalDateTimeJsonDeserializer.java

/**
 * {@link JsonDeserializer} for {@link LocalDateTime} objects.
 *
 * @author Tigran_Dadaiants dtkcommon@gmail.com
 */
public class LocalDateTimeJsonDeserializer implements JsonDeserializer<LocalDateTime> {

From source file com.google.belay.server.CapabilityAdapter.java

/**
 * Gson adapter which can serialize and deserialize {@link Capability} objects
 * to and from the expected format in the bcap protocol.
 * 
 * @author Iain McGinniss (iainmcgin@google.com)
 */

From source file com.google.devtools.moe.client.gson.ImmutableListDeserializer.java

final class ImmutableListDeserializer implements JsonDeserializer<ImmutableList<?>> {
    @Override
    public ImmutableList<?> deserialize(JsonElement json, Type type, JsonDeserializationContext context)
            throws JsonParseException {
        Type[] typeArguments = ((ParameterizedType) type).getActualTypeArguments();
        ParameterizedType listType = SimpleParameterizedType.create(List.class, typeArguments);

From source file com.google.devtools.moe.client.gson.JsonObjectDeserializer.java

/**
 * Helper class to deserialize raw Json in a config.
 */
public class JsonObjectDeserializer implements JsonDeserializer<JsonObject> {
    @Override
    public JsonObject deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)

From source file com.google.enterprise.adaptor.secmgr.json.ProxyTypeAdapter.java

/**
 * A type adapter for a given type that uses a proxy class for serialization.
 * The proxy is a class that will be serialized in place of the type.  An
 * instance of the type is serialized by converting it to an instance of the
 * proxy class by means of the proxy's one-argument constructor and then
 * serializing the proxy.  An instance of the type is deserialized by first

From source file com.google.gerrit.server.events.EventDeserializer.java

/**
 * JSON deserializer for {@link Event}s.
 * <p>
 * Deserialized objects are of an appropriate subclass based on the value of the
 * top-level "type" element.
 */