List of usage examples for com.google.gson InstanceCreator interface-usage
From source file co.cask.cdap.remote.dataset.TreeMapInstanceCreator.java
/** * TypeAdapter that deserializes Maps into TreeMaps, with the {@link Bytes#BYTES_COMPARATOR}. */ public final class TreeMapInstanceCreator implements InstanceCreator<Map<?, ?>> { public TreeMapInstanceCreator() { }
From source file com.deveo.android.api.MetadataResultsInstanceCreator.java
public class MetadataResultsInstanceCreator implements InstanceCreator<MetadataResults<?>> { @Override public MetadataResults<?> createInstance(Type type) { return new MetadataResults(); }
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.gwtjsonrpc.server.CallDeserializer.java
final class CallDeserializer<CallType extends ActiveCall> implements JsonDeserializer<CallType>, InstanceCreator<CallType> { private final CallType req; private final JsonServlet<? extends ActiveCall> server; CallDeserializer(final CallType call, final JsonServlet<CallType> jsonServlet) {
From source file com.google.gwtjsonrpc.server.MapDeserializer.java
public class MapDeserializer implements JsonDeserializer<Map<Object, Object>>, JsonSerializer<Map<Object, Object>>, InstanceCreator<Map<Object, Object>> { public Map<Object, Object> createInstance(final Type type) { return new HashMap<Object, Object>(); }
From source file com.google.wave.api.impl.EventMessageBundleGsonAdaptor.java
/** * Gson adaptor to serialize and deserialize {@link EventMessageBundle}. * * @author douwe@google.com (Douwe Osinga) */ public class EventMessageBundleGsonAdaptor implements InstanceCreator<EventMessageBundle>,
From source file com.rackspacecloud.client.service_registry.objects.Event.java
public class Event implements InstanceCreator<Event>, JsonDeserializer<Event>, HasId { private String id; private Long timestamp; private EventType type; private EventPayload payload;
From source file com.redhat.tools.nexus.serial.DateToFileMapTypeAdapter.java
public class DateToFileMapTypeAdapter implements JsonSerializer<TreeMap<Date, File>>, JsonDeserializer<TreeMap<Date, File>>, InstanceCreator<TreeMap<Date, File>>, Converter { private static final String DATE_PROP = "date"; private static final String FILE_PROP = "file";
From source file com.ritul.truckshare.Pojo.DriverInformation.java
/** * Created by admin on 16-Feb-16. */ public class DriverInformation implements InstanceCreator<DriverInformation> { String appUserId, driverDetailId, licenseNumber, licenseIssuedStateId, licenseExpiryDate, licenseImageBase64String, licenseImageFormat;
From source file com.solidfire.jsvcgen.serialization.OptionalAdapter.java
/** * Handles serializing and deserializing Optional objects. */ public class OptionalAdapter implements JsonSerializer<Optional<?>>, JsonDeserializer<Optional<?>>, InstanceCreator<Optional<?>> {