List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file net.ilexiconn.magister.adapter.type.DisplayTypeAdapter.java
public class DisplayTypeAdapter extends TypeAdapter<DisplayType> { public Gson gson = GsonUtil.getGson(); @Override public void write(JsonWriter out, DisplayType value) throws IOException { throw new UnsupportedOperationException("Not implemented");
From source file net.ilexiconn.magister.adapter.type.InfoTypeAdapter.java
public class InfoTypeAdapter extends TypeAdapter<InfoType> { public Gson gson = GsonUtil.getGson(); @Override public void write(JsonWriter out, InfoType value) throws IOException { throw new UnsupportedOperationException("Not implemented");
From source file net.ilexiconn.magister.adapter.type.RowTypeAdapter.java
public class RowTypeAdapter extends TypeAdapter<RowType> { public Gson gson = GsonUtil.getGson(); @Override public void write(JsonWriter out, RowType value) throws IOException { throw new UnsupportedOperationException("Not implemented");
From source file net.joinedminds.masserr.api.serialization.ObjectIdTypeAdapter.java
/** * Description * * @author Robert Sandell <sandell.robert@gmail.com> */ public class ObjectIdTypeAdapter extends TypeAdapter<ObjectId> {
From source file net.minecraftforge.gradle.util.json.FileAdapter.java
public class FileAdapter extends TypeAdapter<File> { @Override public File read(JsonReader json) throws IOException { if (json.hasNext()) { String value = json.nextString();
From source file net.minecraftforge.gradle.util.json.forgeversion.ForgeArtifactAdapter.java
public class ForgeArtifactAdapter extends TypeAdapter<ForgeArtifact> { @Override public void write(JsonWriter out, ForgeArtifact value) throws IOException { // dont really need to do this.. but wtvr... out.beginArray();
From source file net.oneandone.stool.configuration.adapter.ExpireTypeAdapter.java
public class ExpireTypeAdapter extends TypeAdapter<Expire> { @Override public void write(JsonWriter out, Expire value) throws IOException { out.value(value.toString()); }
From source file net.oneandone.stool.configuration.adapter.ExtensionsAdapter.java
public class ExtensionsAdapter extends TypeAdapter<Extensions> { public static TypeAdapterFactory factory(final ExtensionsFactory factory) { return new TypeAdapterFactory() { @SuppressWarnings("unchecked") public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) { if (type.getRawType().equals(Extensions.class)) {
From source file net.oneandone.stool.configuration.adapter.FileNodeTypeAdapter.java
public class FileNodeTypeAdapter extends TypeAdapter<FileNode> { private final World world; public FileNodeTypeAdapter(World world) { this.world = world; }
From source file net.oneandone.stool.configuration.adapter.UntilTypeAdapter.java
public class UntilTypeAdapter extends TypeAdapter<Until> { @Override public void write(JsonWriter out, Until value) throws IOException { out.value(value.toString()); }