public final class JsonAdapterAnnotationTypeAdapterFactory extends Object implements TypeAdapterFactory
JsonAdapter and uses an
instance of the specified class as the default type adapter.| Constructor and Description |
|---|
JsonAdapterAnnotationTypeAdapterFactory(ConstructorConstructor constructorConstructor) |
| Modifier and Type | Method and Description |
|---|---|
<T> TypeAdapter<T> |
create(Gson gson,
TypeToken<T> targetType)
Returns a type adapter for
type, or null if this factory doesn't
support type. |
public JsonAdapterAnnotationTypeAdapterFactory(ConstructorConstructor constructorConstructor)
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> targetType)
TypeAdapterFactorytype, or null if this factory doesn't
support type.create in interface TypeAdapterFactory