Example usage for com.google.gson TypeAdapter subclass-usage

List of usage examples for com.google.gson TypeAdapter subclass-usage

Introduction

In this page you can find the example usage for com.google.gson TypeAdapter subclass-usage.

Usage

From source file org.yx.common.DateTimeTypeAdapter.java

public class DateTimeTypeAdapter extends TypeAdapter<Date> {

    @Override
    public Date read(JsonReader in) throws IOException {
        if (in.peek() == JsonToken.NULL) {
            in.nextNull();

From source file pb.JSON.java

/**
 * Gson TypeAdapter for Joda DateTime type
 */
class DateTimeTypeAdapter extends TypeAdapter<DateTime> {

    private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();

From source file pl.softech.gw.json.TaskGsonTypeAdapter.java

/**
 *
 * @author Sawomir led <slawomir.sledz@sof-tech.pl>
 * @since 1.0
 */
public class TaskGsonTypeAdapter extends TypeAdapter<ITask> {

From source file project.celine.infinitescroll.service.MyDateTypeAdapter.java

/**
 * Adapter for Date. Although this class appears stateless, it is not.
 * DateFormat captures its time zone and locale when it is created, which gives
 * this class state. DateFormat isn't thread safe either, so this class has
 * to synchronize its read and write methods.
 */

From source file se.sics.datamodel.client.gson.CGetObjAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */

public class CGetObjAdapter extends TypeAdapter<CGetObj> {

From source file se.sics.datamodel.client.gson.CGetTypeAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */
public class CGetTypeAdapter extends TypeAdapter<CGetType> {

    @Override

From source file se.sics.datamodel.client.gson.CPutObjAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */
public class CPutObjAdapter extends TypeAdapter<CPutObj> {

    @Override

From source file se.sics.datamodel.client.gson.CPutTypeAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */
public class CPutTypeAdapter extends TypeAdapter<CPutType> {

    @Override

From source file se.sics.datamodel.client.gson.CQueryObjAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */

public class CQueryObjAdapter extends TypeAdapter<CQueryObj> {

From source file se.sics.datamodel.client.gson.CQueryTypeAdapter.java

/**
 * @author Alex Ormenisan <aaor@sics.se>
 */
public class CQueryTypeAdapter extends TypeAdapter<QueryTypeHolder> {

    @Override