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

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

Introduction

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

Usage

From source file com.appslandia.common.json.OffsetDateTimeAdapter.java

/**
 *
 * @author <a href="mailto:haducloc13@gmail.com">Loc Ha</a>
 *
 */
public class OffsetDateTimeAdapter implements JsonSerializer<OffsetDateTime>, JsonDeserializer<OffsetDateTime> {

From source file com.appslandia.common.json.OffsetTimeAdapter.java

/**
 *
 * @author <a href="mailto:haducloc13@gmail.com">Loc Ha</a>
 *
 */
public class OffsetTimeAdapter implements JsonSerializer<OffsetTime>, JsonDeserializer<OffsetTime> {

From source file com.appslandia.common.json.SqlDateAdapter.java

/**
 * 
 * @author <a href="mailto:haducloc13@gmail.com">Loc Ha</a>
 */
public class SqlDateAdapter implements JsonSerializer<java.sql.Date>, JsonDeserializer<java.sql.Date> {

From source file com.appslandia.common.json.SqlDateTimeAdapter.java

/**
 * 
 * @author <a href="mailto:haducloc13@gmail.com">Loc Ha</a>
 */
public class SqlDateTimeAdapter
        implements JsonSerializer<java.sql.Timestamp>, JsonDeserializer<java.sql.Timestamp> {

From source file com.appslandia.common.json.SqlTimeAdapter.java

/**
 * 
 * @author <a href="mailto:haducloc13@gmail.com">Loc Ha</a>
 */
public class SqlTimeAdapter implements JsonSerializer<java.sql.Time>, JsonDeserializer<java.sql.Time> {

From source file com.arcbees.vcs.util.CommitStatusTypeAdapter.java

public class CommitStatusTypeAdapter implements JsonSerializer<CommitStatus> {
    @Override
    public JsonElement serialize(CommitStatus src, Type typeOfSrc, JsonSerializationContext context) {
        return new JsonPrimitive(src.getStatusCode());
    }
}

From source file com.arcbees.vcs.util.PolymorphicTypeAdapter.java

public class PolymorphicTypeAdapter<T> implements JsonSerializer<T>, JsonDeserializer<T> {
    private static final String CLASSNAME = "@class";
    private static final String VALUE = "@value";

    @Override
    public T deserialize(JsonElement json, Type type, JsonDeserializationContext context)

From source file com.ariadnext.idcheckio.invoker.JSON.java

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

    /**
     * Constructor for DateAdapter
     *

From source file com.asakusafw.lang.inspection.json.JsonAdapter.java

/**
 * JSON adapter.
 * @param <T> the target type
 */
public interface JsonAdapter<T> extends JsonSerializer<T>, JsonDeserializer<T> {

From source file com.atlauncher.data.mojang.DateTypeAdapter.java

public class DateTypeAdapter implements JsonDeserializer<Date>, JsonSerializer<Date> {
    private final DateFormat enUsFormat = DateFormat.getDateTimeInstance(2, 2, Locale.US);
    private final DateFormat iso8601Format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");

    @Override
    public Date deserialize(JsonElement json, Type type, JsonDeserializationContext context)