Package com.google.gson.interceptors
Class InterceptorFactory
- java.lang.Object
-
- com.google.gson.interceptors.InterceptorFactory
-
- All Implemented Interfaces:
TypeAdapterFactory
public final class InterceptorFactory extends java.lang.Object implements TypeAdapterFactory
A type adapter factory that implements@Intercept.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classInterceptorFactory.InterceptorAdapter<T>
-
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:TypeAdapterFactoryReturns a type adapter fortype, or null if this factory doesn't supporttype.- Specified by:
createin interfaceTypeAdapterFactory
-
-