public class TypeSelectorTypeAdapterFactory<T> extends Object implements com.google.gson.TypeAdapterFactory
TypeAdapter that will run the TypeSelector and find the TypeAdapter for the selected
type.| Constructor and Description |
|---|
TypeSelectorTypeAdapterFactory(ClassConfig<T> classConfig,
Set<com.google.gson.reflect.TypeToken> alreadyResolvedTypeTokensRegistry) |
| Modifier and Type | Method and Description |
|---|---|
<T> com.google.gson.TypeAdapter<T> |
create(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<T> type) |
public TypeSelectorTypeAdapterFactory(ClassConfig<T> classConfig, Set<com.google.gson.reflect.TypeToken> alreadyResolvedTypeTokensRegistry)
Copyright © 2017. All rights reserved.