Package com.google.gson.interceptors
Class InterceptorFactory
- java.lang.Object
-
- com.google.gson.interceptors.InterceptorFactory
-
- All Implemented Interfaces:
TypeAdapterFactory
public final class InterceptorFactory extends Object implements TypeAdapterFactory
A type adapter factory that implements@Intercept
.
-
-
Constructor Summary
Constructors Constructor Description InterceptorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TypeAdapter<T>
create(Gson gson, TypeToken<T> type)
Returns a type adapter fortype
, or null if this factory doesn't supporttype
.
-
-
-
Method Detail
-
create
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type)
Description copied from interface:TypeAdapterFactory
Returns a type adapter fortype
, or null if this factory doesn't supporttype
.- Specified by:
create
in interfaceTypeAdapterFactory
-
-