| Package | Description | 
|---|---|
| com.google.gson.typeadapters | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> RuntimeTypeAdapterFactory<T> | 
RuntimeTypeAdapterFactory.of(Class<T> baseType)
Creates a new runtime type adapter for  
baseType using "type" as
 the type field name. | 
static <T> RuntimeTypeAdapterFactory<T> | 
RuntimeTypeAdapterFactory.of(Class<T> baseType,
  String typeFieldName)
Creates a new runtime type adapter using for  
baseType using typeFieldName as the type field name. | 
static <T> RuntimeTypeAdapterFactory<T> | 
RuntimeTypeAdapterFactory.of(String baseName,
  Class<T> baseType)
Creates a new runtime type adapter for  
baseType wrapped with baseName using
 "type" as the type field name. | 
static <T> RuntimeTypeAdapterFactory<T> | 
RuntimeTypeAdapterFactory.of(String baseName,
  Class<T> baseType,
  String typeFieldName)
Creates a new runtime type adapter for  
baseType wrapped with baseName using
 typeFieldName as the type field name. | 
RuntimeTypeAdapterFactory<T> | 
RuntimeTypeAdapterFactory.registerSubtype(Class<? extends T> type)
Registers  
type identified by its simple
 name. | 
RuntimeTypeAdapterFactory<T> | 
RuntimeTypeAdapterFactory.registerSubtype(Class<? extends T> type,
               String label)
Registers  
type identified by label. |