public static final class ReflectiveTypeAdapterFactory.Adapter<T> extends TypeAdapter<T>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,ReflectiveTypeAdapterFactory.BoundField> |
boundFields |
private ObjectConstructor<T> |
constructor |
| Constructor and Description |
|---|
Adapter(ObjectConstructor<T> constructor,
java.util.Map<java.lang.String,ReflectiveTypeAdapterFactory.BoundField> boundFields) |
| 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 |
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, toJsonTreeprivate final ObjectConstructor<T> constructor
private final java.util.Map<java.lang.String,ReflectiveTypeAdapterFactory.BoundField> boundFields
Adapter(ObjectConstructor<T> constructor, java.util.Map<java.lang.String,ReflectiveTypeAdapterFactory.BoundField> boundFields)
public T read(JsonReader in) throws java.io.IOException
TypeAdapterread in class TypeAdapter<T>java.io.IOExceptionpublic void write(JsonWriter out, T value) throws java.io.IOException
TypeAdaptervalue.write in class TypeAdapter<T>value - the Java object to write. May be null.java.io.IOException