JsonSerializable.getObject Method

定义

重载

getObject(String propertyName)

Gets a JSONObject.

getObject(String propertyName, Class<T> c)

Gets an object value.

getObject(String propertyName)

Gets a JSONObject.

public JSONObject getObject(String propertyName)

参数

propertyName
String

the property to get.

返回

JSONObject

the JSONObject.

getObject(String propertyName, Class<T> c)

Gets an object value.

public <T extends Object> T getObject(String propertyName, Class<T> c)

参数

propertyName
String

the property to get.

c
Class<T>

the class of the object. If c is a POJO class, it must be a member (and not an anonymous or local) and a static one.

返回

<T extends Object> T

the object value.

适用于