public final class GsonFactory extends Object
Constructor and Description |
---|
GsonFactory() |
Modifier and Type | Method and Description |
---|---|
static com.google.gson.Gson |
getGson()
Get gson instance.
|
static void |
registerTypeAdapter(Type type,
com.google.gson.TypeAdapter typeAdapter)
Register gson type adapter.
|
public static void registerTypeAdapter(Type type, com.google.gson.TypeAdapter typeAdapter)
type
- gson typetypeAdapter
- gson type adapterpublic static com.google.gson.Gson getGson()
Copyright © 2018. All rights reserved.