1 package com.google.gson.internal.bind; 2 3 import com.google.gson.TypeAdapter; 4 5 /** 6 * Type adapter which might delegate serialization to another adapter. 7 */ 8 public abstract class SerializationDelegatingTypeAdapter<T> extends TypeAdapter<T> { 9 /** 10 * Returns the adapter used for serialization, might be {@code this} or another adapter. 11 * That other adapter might itself also be a {@code SerializationDelegatingTypeAdapter}. 12 */ getSerializationDelegate()13 public abstract TypeAdapter<T> getSerializationDelegate(); 14 } 15