List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file edu.jhuapl.dorset.agents.ResponseCodeJsonAdapter.java
public class ResponseCodeJsonAdapter extends TypeAdapter<Code> { @Override public Code read(JsonReader reader) throws IOException { return Code.fromValue(reader.nextInt()); }
From source file edu.jhuapl.dorset.agents.ResponseTypeJsonAdapter.java
public class ResponseTypeJsonAdapter extends TypeAdapter<Type> { @Override public Type read(JsonReader reader) throws IOException { return Type.fromValue(reader.nextString()); }
From source file edu.mit.media.funf.json.BundleTypeAdapter.java
public class BundleTypeAdapter extends TypeAdapter<Bundle> { public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory() { @SuppressWarnings("unchecked") @Override
From source file edu.oregonstate.eecs.mcplan.domains.cosmic.MWNumericArrayJsonSerializer.java
/** * Encodes an MWNumericArray with any number of dimensions into a nested * JsonArray. * @author jhostetler */ public class MWNumericArrayJsonSerializer extends TypeAdapter<MWNumericArray> {
From source file ee.ria.xroad.opmonitordaemon.SecurityServerTypeTypeAdapter.java
/**
* Type adapter for the securityServerType field used with the JsonAdapter annotation.
*
* We use this type adapter to ensure an exception is thrown if the given value cannot
* be converted to any values defined in SecurityServerType, instead of silently setting
* the securityServerField to null.
From source file es.alrocar.poiproxy.fiware.poidp.schema.utils.DateTypeAdapter.java
public class DateTypeAdapter extends TypeAdapter<Date> { /** * yyyy/MM/dd HH:mm:ss */ public static final String DEFAULT_FORMAT = "yyyy/MM/dd HH:mm:ss";
From source file es.chatclient.server.messages.adapters.ConversDataMessageTypeAdapter.java
/** * * @author adrinfer */ public class ConversDataMessageTypeAdapter extends TypeAdapter<ConversDataMessage> {
From source file es.chatclient.server.messages.adapters.RequestMessageTypeAdapter.java
/** * * @author Adrin Fernndez Cano */ public class RequestMessageTypeAdapter extends TypeAdapter<RequestMessage> {
From source file es.chatclient.server.messages.adapters.ServerMessageTypeAdapter.java
/** * * @author adrinfer */ public class ServerMessageTypeAdapter extends TypeAdapter<Message> {
From source file es.chatserver.server.messages.adapters.ConversDataMessageTypeAdapter.java
/** * * @author adrinfer */ public class ConversDataMessageTypeAdapter extends TypeAdapter<ConversDataMessage> {