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