public class GsonObject extends JSONObject
JSONObject.Builder| 构造器和说明 |
|---|
GsonObject() |
GsonObject(com.google.gson.JsonObject object) |
GsonObject(Map<String,Object> map) |
toStringcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic GsonObject(com.google.gson.JsonObject object)
public GsonObject()
public com.google.gson.JsonObject getRawObject()
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
public boolean containsValue(Object v)
public JSONObject getJSONObject(String key)
getJSONObject 在类中 JSONObjectpublic JSONArray getJSONArray(String key)
getJSONArray 在类中 JSONObjectpublic <T> T getObject(String key, Class<T> clazz)
getObject 在类中 JSONObjectpublic <T> T getObject(String key, Type type)
getObject 在类中 JSONObjectT - generic typekey - attr keytype - attr typepublic <T> T getObject(String key, TypeReference typeReference)
getObject 在类中 JSONObjectpublic Boolean getBoolean(String key)
getBoolean 在类中 JSONObjectpublic byte[] getBytes(String key)
getBytes 在类中 JSONObjectpublic boolean getBooleanValue(String key)
getBooleanValue 在类中 JSONObjectpublic Byte getByte(String key)
getByte 在类中 JSONObjectpublic byte getByteValue(String key)
getByteValue 在类中 JSONObjectpublic Short getShort(String key)
getShort 在类中 JSONObjectpublic short getShortValue(String key)
getShortValue 在类中 JSONObjectpublic Integer getInteger(String key)
getInteger 在类中 JSONObjectpublic int getIntValue(String key)
getIntValue 在类中 JSONObjectpublic Long getLong(String key)
getLong 在类中 JSONObjectpublic long getLongValue(String key)
getLongValue 在类中 JSONObjectpublic Float getFloat(String key)
getFloat 在类中 JSONObjectpublic float getFloatValue(String key)
getFloatValue 在类中 JSONObjectpublic Double getDouble(String key)
getDouble 在类中 JSONObjectpublic double getDoubleValue(String key)
getDoubleValue 在类中 JSONObjectpublic BigDecimal getBigDecimal(String key)
getBigDecimal 在类中 JSONObjectpublic BigInteger getBigInteger(String key)
getBigInteger 在类中 JSONObjectpublic String getString(String key)
getString 在类中 JSONObjectpublic Date getDate(String key)
getDate 在类中 JSONObjectpublic Date getSqlDate(String key)
getSqlDate 在类中 JSONObjectpublic Timestamp getTimestamp(String key)
getTimestamp 在类中 JSONObjectpublic JSONObject fluentPut(String key, Object value)
fluentPut 在类中 JSONObjectpublic JSONObject fluentPutAll(Map<? extends String,? extends Object> m)
fluentPutAll 在类中 JSONObjectpublic void clear()
public JSONObject fluentClear()
fluentClear 在类中 JSONObjectpublic Collection<Object> values()
public Map<String,Object> getInnerMap()
getInnerMap 在类中 JSONObjectpublic <T> T toJavaObject(Class<T> clazz)
toJavaObject 在类中 JSONObjectpublic String toJSONString()
toJSONString 在类中 JSONObjectCopyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.