List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file es.chatserver.server.messages.adapters.RequestMessageTypeAdapter.java
/** * * @author Adrin Fernndez Cano */ public class RequestMessageTypeAdapter extends TypeAdapter<RequestMessage> {
From source file es.chatserver.server.messages.adapters.ServerMessageTypeAdapter.java
/** * * @author adrinfer */ public class ServerMessageTypeAdapter extends TypeAdapter<Message> {
From source file eu.crushedpixel.littlstar.api.gson.ResponseWrapperTypeAdapter.java
/**
* A custom TypeAdapter to properly deserialize the JSON
* the Littlstar API returns into ResponseWrapper objects<br>
*
* Because of type erasure, GSON would return a ResponseWrapper object
* containing a {@link com.google.gson.internal.LinkedTreeMap} instead of the desired wrapped object.
From source file eu.operando.core.pdb.client.JSON.java
/** * Gson TypeAdapter for Joda DateTime type */ class DateTimeTypeAdapter extends TypeAdapter<DateTime> { private final DateTimeFormatter parseFormatter = ISODateTimeFormat.dateOptionalTimeParser();
From source file feign.gson.DoubleToIntMapTypeAdapter.java
/** * Deals with scenario where Gson Object type treats all numbers as doubles. */ public class DoubleToIntMapTypeAdapter extends TypeAdapter<Map<String, Object>> { final static TypeToken<Map<String, Object>> token = new TypeToken<Map<String, Object>>() {
From source file funf.json.BundleTypeAdapter.java
public class BundleTypeAdapter extends TypeAdapter<Bundle> { public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory() { @SuppressWarnings("unchecked") @Override
From source file GObjects.MyTypeAdapter.java
/** * * @author orcl */ public class MyTypeAdapter<T> extends TypeAdapter<T> { public T read(JsonReader reader) throws IOException {
From source file in.sumeetkumar.asr.data.BundleTypeAdapter.java
public class BundleTypeAdapter extends TypeAdapter<Bundle> { public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory() { @SuppressWarnings("unchecked") @Override
From source file io.bouquet.v4.GsonFactory.java
/** * Gson Adapter for Joda DateTime type */ class DateTimeTypeAdapter extends TypeAdapter<DateTime> { private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
From source file io.datakernel.datagraph.server.GsonClassTypeAdapter.java
public final class GsonClassTypeAdapter extends TypeAdapter<Class<?>> { @Override public Class<?> read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null;