Class JsonAdapterAnnotationTypeAdapterFactory
java.lang.Object
com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
- All Implemented Interfaces:
TypeAdapterFactory
public final class JsonAdapterAnnotationTypeAdapterFactory
extends Object
implements TypeAdapterFactory
Given a type T, looks for the annotation
JsonAdapter and uses an instance of the
specified class as the default type adapter.- Since:
- 2.3
-
Constructor Summary
ConstructorsConstructorDescriptionJsonAdapterAnnotationTypeAdapterFactory(ConstructorConstructor constructorConstructor) -
Method Summary
Modifier and TypeMethodDescription<T> TypeAdapter<T> Returns a type adapter fortype, or null if this factory doesn't supporttype.
-
Constructor Details
-
JsonAdapterAnnotationTypeAdapterFactory
-
-
Method Details
-
create
Description copied from interface:TypeAdapterFactoryReturns a type adapter fortype, or null if this factory doesn't supporttype.- Specified by:
createin interfaceTypeAdapterFactory
-