public final class ReflectiveTypeAdapterFactory extends java.lang.Object implements TypeAdapterFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
ReflectiveTypeAdapterFactory.Adapter<T> |
| Constructor and Description |
|---|
ReflectiveTypeAdapterFactory(ConstructorConstructor constructorConstructor,
FieldNamingStrategy fieldNamingPolicy,
Excluder excluder,
JsonAdapterAnnotationTypeAdapterFactory jsonAdapterFactory) |
| Modifier and Type | Method and Description |
|---|---|
<T> TypeAdapter<T> |
create(Gson gson,
TypeToken<T> type)
Returns a type adapter for
type, or null if this factory doesn't
support type. |
boolean |
excludeField(java.lang.reflect.Field f,
boolean serialize) |
public ReflectiveTypeAdapterFactory(ConstructorConstructor constructorConstructor, FieldNamingStrategy fieldNamingPolicy, Excluder excluder, JsonAdapterAnnotationTypeAdapterFactory jsonAdapterFactory)
public boolean excludeField(java.lang.reflect.Field f,
boolean serialize)
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type)
TypeAdapterFactorytype, or null if this factory doesn't
support type.create in interface TypeAdapterFactory