Package com.google.gson.internal.bind
Class TreeTypeAdapter.SingleTypeFactory
java.lang.Object
com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- All Implemented Interfaces:
TypeAdapterFactory
- Enclosing class:
TreeTypeAdapter<T>
private static final class TreeTypeAdapter.SingleTypeFactory
extends Object
implements TypeAdapterFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JsonDeserializer
<?> private final TypeToken
<?> private final Class
<?> private final boolean
private final JsonSerializer
<?> -
Constructor Summary
ConstructorsConstructorDescriptionSingleTypeFactory
(Object typeAdapter, TypeToken<?> exactType, boolean matchRawType, Class<?> hierarchyType) -
Method Summary
Modifier and TypeMethodDescription<T> TypeAdapter
<T> Returns a type adapter fortype
, or null if this factory doesn't supporttype
.
-
Field Details
-
exactType
-
matchRawType
private final boolean matchRawType -
hierarchyType
-
serializer
-
deserializer
-
-
Constructor Details
-
SingleTypeFactory
-
-
Method Details
-
create
Description copied from interface:TypeAdapterFactory
Returns a type adapter fortype
, or null if this factory doesn't supporttype
.- Specified by:
create
in interfaceTypeAdapterFactory
-