List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file com.android.common.ide.common.blame.SourcePositionJsonTypeAdapter.java
public class SourcePositionJsonTypeAdapter extends TypeAdapter<SourcePosition> { private static final String START_LINE = "startLine"; private static final String START_COLUMN = "startColumn";
From source file com.android.ide.common.blame.MessageJsonSerializer.java
/**
* Class to handle json serialization and deserialization of messages.
*
* Reads json objects of the form:
*
* <pre>
From source file com.android.ide.common.blame.SourceFileJsonTypeAdapter.java
/**
* JsonSerializer and Deserializer for {@link SourceFile}.
*
* The JsonDeserialiser accepts either a string of the file path or a json object of the form
* <pre>{
* "path":"/path/to/file.java",
From source file com.android.ide.common.blame.SourceFilePositionJsonSerializer.java
public class SourceFilePositionJsonSerializer extends TypeAdapter<SourceFilePosition> { private static final String POSITION = "position"; private static final String FILE = "file";
From source file com.android.ide.common.blame.SourcePositionJsonTypeAdapter.java
public class SourcePositionJsonTypeAdapter extends TypeAdapter<SourcePosition> { private static final String START_LINE = "startLine"; private static final String START_COLUMN = "startColumn";
From source file com.antew.redditinpictures.library.gson.VoteAdapter.java
/**
* This is used to serialize/deserialize Votes on Reddit posts Reddit uses true for an upvote, false
* for downvotes, and null for neutral votes
*
* @author Antew
*/
From source file com.arangodb.entity.CollectionStatusTypeAdapter.java
/**
*
* Used only internally for entity deserialisation
*
* @author tamtam180 - kirscheless at gmail.com
*
From source file com.ariadnext.idcheckio.invoker.JSON.java
/** * Gson TypeAdapter for Joda DateTime type */ class DateTimeTypeAdapter extends TypeAdapter<DateTime> { private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
From source file com.atlauncher.adapter.ColorTypeAdapter.java
/** * This class will ensure that colors are serialized to a hex value for easy editing */ public final class ColorTypeAdapter extends TypeAdapter<Color> { @Override public void write(JsonWriter writer, Color c) throws IOException {
From source file com.atlauncher.data.mojang.FileTypeAdapter.java
public class FileTypeAdapter extends TypeAdapter<File> { @Override public File read(JsonReader json) throws IOException { if (json.hasNext()) { String value = json.nextString();