Module com.google.gson
Package com.google.gson.internal.bind
Class SerializationDelegatingTypeAdapter<T>
- java.lang.Object
-
- com.google.gson.TypeAdapter<T>
-
- com.google.gson.internal.bind.SerializationDelegatingTypeAdapter<T>
-
- Direct Known Subclasses:
Gson.FutureTypeAdapter
,TreeTypeAdapter
public abstract class SerializationDelegatingTypeAdapter<T> extends TypeAdapter<T>
Type adapter which might delegate serialization to another adapter.
-
-
Constructor Summary
Constructors Constructor Description SerializationDelegatingTypeAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract TypeAdapter<T>
getSerializationDelegate()
Returns the adapter used for serialization, might bethis
or another adapter.-
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, read, toJson, toJson, toJsonTree, write
-
-
-
-
Method Detail
-
getSerializationDelegate
public abstract TypeAdapter<T> getSerializationDelegate()
Returns the adapter used for serialization, might bethis
or another adapter. That other adapter might itself also be aSerializationDelegatingTypeAdapter
.
-
-