public final class GsonFactory extends Object
| Constructor and Description |
|---|
GsonFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clean()
Re-initialize the GsonBuilder.
|
static com.google.gson.Gson |
getGson()
Get gson instance.
|
static com.google.gson.JsonParser |
getJsonParser()
Get json parser.
|
static void |
registerTypeAdapter(Type type,
com.google.gson.TypeAdapter typeAdapter)
Register 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()
public static com.google.gson.JsonParser getJsonParser()
public static void clean()
Copyright © 2021 The Apache Software Foundation. All rights reserved.