List of usage examples for com.google.gson JsonSerializer interface-usage
From source file de.winniehell.battlebeavers.storage.StepSerializer.java
/** * serializer class for {@link Step} * @author <a href="https://github.com/winniehell/">winniehell</a> */ class StepSerializer implements JsonSerializer<Step> { @Override
From source file de.winniehell.battlebeavers.storage.TileSerializer.java
/** * serializer class for {@link Tile} * @author <a href="https://github.com/winniehell/">winniehell</a> */ class TileSerializer implements JsonSerializer<Tile> { @Override
From source file de.winniehell.battlebeavers.storage.WayPointSerializer.java
/** * serializer class for {@link WayPoint} * @author <a href="https://github.com/winniehell/">winniehell</a> */ class WayPointSerializer implements JsonSerializer<WayPoint> { @Override
From source file de.winniehell.battlebeavers.storage.WeightedPathSerializer.java
/** * serializer class for {@link Path} * @author <a href="https://github.com/winniehell/">winniehell</a> */ class WeightedPathSerializer implements JsonSerializer<WeightedPath> { @Override
From source file donky.microsoft.aspnet.signalr.client.CalendarSerializer.java
public class CalendarSerializer implements JsonSerializer<Calendar>, JsonDeserializer<Calendar> { private static final DateSerializer mInternalSerializer = new DateSerializer(); @Override public Calendar deserialize(JsonElement element, Type type, JsonDeserializationContext ctx)
From source file donky.microsoft.aspnet.signalr.client.DateSerializer.java
/** * Date Serializer/Deserializer to make .NET and Java dates compatible */ public class DateSerializer implements JsonSerializer<Date>, JsonDeserializer<Date> { private static final int THREE_MILLISECONDS_DATE_FORMAT_LENGTH = 29;
From source file edu.cmu.sv.trailscribe.utils.SyncItemSerializer.java
public class SyncItemSerializer implements JsonSerializer<ArrayList<SyncItem>> { /** * Serializes an array of SyncItems in the way the TrailScribe server expects * * @param items Sync items already in the device, either maps or kmls
From source file edu.eci.arsw.umlcolaborativo.util.InterfaceAdapter.java
public final class InterfaceAdapter<T> implements JsonSerializer<T>, JsonDeserializer<T> { @Override public JsonElement serialize(T object, Type interfaceType, JsonSerializationContext context) { final JsonObject wrapper = new JsonObject(); wrapper.addProperty("type", object.getClass().getName()); //Gson gson = new Gson();
From source file edu.iastate.music.marching.attendance.util.DateTimeConverter.java
/** * GSON serialiser/deserialiser for converting Joda {@link DateTime} objects. */ public class DateTimeConverter implements JsonSerializer<DateTime>, JsonDeserializer<DateTime> { /** * Gson invokes this call-back method during serialization when it encounters a field of the
From source file edu.isi.wings.portal.classes.JsonHandler.java
/** * Link Serializer * -- Nodes and Variables references in Links are converted to String ids (to avoid repeating same information) */ class LinkSerializer implements JsonSerializer<Link> { public JsonElement serialize(Link link, Type typeOfSrc, JsonSerializationContext context) {