public class GsonObject extends JSONObject
JSONObject.Builder| Constructor and Description |
|---|
GsonObject() |
GsonObject(com.google.gson.JsonObject object) |
GsonObject(Map<String,Object> map) |
toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, 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 in class JSONObjectpublic JSONArray getJSONArray(String key)
getJSONArray in class JSONObjectpublic <T> T getObject(String key, Class<T> clazz)
getObject in class JSONObjectpublic <T> T getObject(String key, Type type)
getObject in class JSONObjectT - generic typekey - attr keytype - attr typepublic <T> T getObject(String key, TypeReference typeReference)
getObject in class JSONObjectpublic Boolean getBoolean(String key)
getBoolean in class JSONObjectpublic byte[] getBytes(String key)
getBytes in class JSONObjectpublic boolean getBooleanValue(String key)
getBooleanValue in class JSONObjectpublic Byte getByte(String key)
getByte in class JSONObjectpublic byte getByteValue(String key)
getByteValue in class JSONObjectpublic Short getShort(String key)
getShort in class JSONObjectpublic short getShortValue(String key)
getShortValue in class JSONObjectpublic Integer getInteger(String key)
getInteger in class JSONObjectpublic int getIntValue(String key)
getIntValue in class JSONObjectpublic Long getLong(String key)
getLong in class JSONObjectpublic long getLongValue(String key)
getLongValue in class JSONObjectpublic Float getFloat(String key)
getFloat in class JSONObjectpublic float getFloatValue(String key)
getFloatValue in class JSONObjectpublic Double getDouble(String key)
getDouble in class JSONObjectpublic double getDoubleValue(String key)
getDoubleValue in class JSONObjectpublic BigDecimal getBigDecimal(String key)
getBigDecimal in class JSONObjectpublic BigInteger getBigInteger(String key)
getBigInteger in class JSONObjectpublic String getString(String key)
getString in class JSONObjectpublic Date getDate(String key)
getDate in class JSONObjectpublic Date getSqlDate(String key)
getSqlDate in class JSONObjectpublic Timestamp getTimestamp(String key)
getTimestamp in class JSONObjectpublic JSONObject fluentPut(String key, Object value)
fluentPut in class JSONObjectpublic JSONObject fluentPutAll(Map<? extends String,? extends Object> m)
fluentPutAll in class JSONObjectpublic void clear()
public JSONObject fluentClear()
fluentClear in class JSONObjectpublic Collection<Object> values()
public Map<String,Object> getInnerMap()
getInnerMap in class JSONObjectpublic <T> T toJavaObject(Class<T> clazz)
toJavaObject in class JSONObjectpublic int hashCode()
public boolean equals(Object obj)
public String toJSONString()
toJSONString in class JSONObjectCopyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.