|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.yarn.util.GsonUtils
public final class GsonUtils
GsonUtils is used for Object-JSON JSON-Object conversion.
To reduce new operations, only one Gson instance in this class.
| 方法摘要 | ||
|---|---|---|
static
|
fromJson(String json,
Class<T> c)
De-serialize JSON-format String to an object. |
|
static String |
toJson(Object src)
Serialize an object to JSON-format String. |
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static String toJson(Object src)
public static <T> T fromJson(String json,
Class<T> c)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||