public final class ReflectiveTypeAdapterFactory extends 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(Field f,
boolean serialize) |
public ReflectiveTypeAdapterFactory(ConstructorConstructor constructorConstructor, FieldNamingStrategy fieldNamingPolicy, Excluder excluder, JsonAdapterAnnotationTypeAdapterFactory jsonAdapterFactory)
public boolean excludeField(Field f, boolean serialize)
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type)
TypeAdapterFactory
type
, or null if this factory doesn't
support type
.create
in interface TypeAdapterFactory