Package com.google.gson.internal.bind
Class CollectionTypeAdapterFactory
- java.lang.Object
-
- com.google.gson.internal.bind.CollectionTypeAdapterFactory
-
- All Implemented Interfaces:
TypeAdapterFactory
public final class CollectionTypeAdapterFactory extends java.lang.Object implements TypeAdapterFactory
Adapt a homogeneous collection of objects.
-
-
Constructor Summary
Constructors Constructor Description CollectionTypeAdapterFactory(ConstructorConstructor constructorConstructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TypeAdapter<T>
create(Gson gson, TypeToken<T> typeToken)
Returns a type adapter fortype
, or null if this factory doesn't supporttype
.
-
-
-
Constructor Detail
-
CollectionTypeAdapterFactory
public CollectionTypeAdapterFactory(ConstructorConstructor constructorConstructor)
-
-
Method Detail
-
create
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken)
Description copied from interface:TypeAdapterFactory
Returns a type adapter fortype
, or null if this factory doesn't supporttype
.- Specified by:
create
in interfaceTypeAdapterFactory
-
-