Uses of Class
com.google.gson.TypeAdapter
-
Packages that use TypeAdapter Package Description com.google.gson This package provides theGson
class to convert Json to Java and vice-versa. -
-
Uses of TypeAdapter in com.google.gson
Methods in com.google.gson that return TypeAdapter Modifier and Type Method Description <T> TypeAdapter<T>
TypeAdapterFactory. create(Gson gson, TypeToken<T> type)
Returns a type adapter fortype
, or null if this factory doesn't supporttype
.<T> TypeAdapter<T>
Gson. getAdapter(TypeToken<T> type)
Returns the type adapter for type.<T> TypeAdapter<T>
Gson. getAdapter(Class<T> type)
Returns the type adapter for type.<T> TypeAdapter<T>
Gson. getDelegateAdapter(TypeAdapterFactory skipPast, TypeToken<T> type)
This method is used to get an alternate type adapter for the specified type.TypeAdapter<T>
TypeAdapter. nullSafe()
This wrapper method is used to make a type adapter null tolerant.
-