类 | |
| class | SingleTypeFactory |
Public 成员函数 | |
| T | read (JsonReader in) throws IOException |
| void | write (JsonWriter out, T value) throws IOException |
静态 Public 成员函数 | |
| static TypeAdapterFactory | newFactory (TypeToken<?> exactType, Object typeAdapter) |
| static TypeAdapterFactory | newFactoryWithMatchRawType (TypeToken<?> exactType, Object typeAdapter) |
| static TypeAdapterFactory | newTypeHierarchyFactory (Class<?> hierarchyType, Object typeAdapter) |
Private 成员函数 | |
| TreeTypeAdapter (JsonSerializer< T > serializer, JsonDeserializer< T > deserializer, Gson gson, TypeToken< T > typeToken, TypeAdapterFactory skipPast) | |
| TypeAdapter< T > | delegate () |
Private 属性 | |
| final JsonSerializer< T > | serializer |
| final JsonDeserializer< T > | deserializer |
| final Gson | gson |
| final TypeToken< T > | typeToken |
| final TypeAdapterFactory | skipPast |
| TypeAdapter< T > | delegate |
Adapts a Gson 1.x tree-style adapter as a streaming TypeAdapter. Since the tree adapter may be serialization-only or deserialization-only, this class has a facility to lookup a delegate type adapter on demand.
|
inlineprivate |
|
inlineprivate |
|
inlinestatic |
Returns a new factory that will match each type against
.
|
inlinestatic |
Returns a new factory that will match each type and its raw type against
.
|
inlinestatic |
Returns a new factory that will match each type's raw type for assignability to
.
|
inline |
|
inline |
|
private |
The delegate is lazily created because it may not be needed, and creating it may fail.
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8