static class Gson.FutureTypeAdapter<T> extends TypeAdapter<T>
Modifier and Type | Field and Description |
---|---|
private TypeAdapter<T> |
delegate |
Constructor and Description |
---|
FutureTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
T |
read(JsonReader in)
Reads one JSON value (an array, object, string, number, boolean or null)
and converts it to a Java object.
|
void |
setDelegate(TypeAdapter<T> typeAdapter) |
void |
write(JsonWriter out,
T value)
Writes one JSON value (an array, object, string, number, boolean or null)
for
value . |
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
private TypeAdapter<T> delegate
public void setDelegate(TypeAdapter<T> typeAdapter)
public T read(JsonReader in) throws java.io.IOException
TypeAdapter
read
in class TypeAdapter<T>
java.io.IOException
public void write(JsonWriter out, T value) throws java.io.IOException
TypeAdapter
value
.write
in class TypeAdapter<T>
value
- the Java object to write. May be null.java.io.IOException