public class FastJsonObjectWrapper extends Object implements IJsonObjectWrapper
Constructor and Description |
---|
FastJsonObjectWrapper() |
FastJsonObjectWrapper(boolean ordered) |
FastJsonObjectWrapper(int initialCapacity) |
FastJsonObjectWrapper(int initialCapacity,
boolean ordered) |
FastJsonObjectWrapper(com.alibaba.fastjson.JSONObject jsonObject) |
FastJsonObjectWrapper(Map<?,?> map) |
public FastJsonObjectWrapper()
public FastJsonObjectWrapper(boolean ordered)
public FastJsonObjectWrapper(int initialCapacity)
public FastJsonObjectWrapper(int initialCapacity, boolean ordered)
public FastJsonObjectWrapper(Map<?,?> map)
public FastJsonObjectWrapper(com.alibaba.fastjson.JSONObject jsonObject)
public IJsonNodeWrapper get(String key)
get
in interface IJsonObjectWrapper
public boolean getBoolean(String key)
getBoolean
in interface IJsonObjectWrapper
public Boolean getAsBoolean(String key)
getAsBoolean
in interface IJsonObjectWrapper
public BigInteger getBigInteger(String key)
getBigInteger
in interface IJsonObjectWrapper
public BigDecimal getBigDecimal(String key)
getBigDecimal
in interface IJsonObjectWrapper
public double getDouble(String key)
getDouble
in interface IJsonObjectWrapper
public Double getAsDouble(String key)
getAsDouble
in interface IJsonObjectWrapper
public float getFloat(String key)
getFloat
in interface IJsonObjectWrapper
public Float getAsFloat(String key)
getAsFloat
in interface IJsonObjectWrapper
public int getInt(String key)
getInt
in interface IJsonObjectWrapper
public Integer getAsInteger(String key)
getAsInteger
in interface IJsonObjectWrapper
public IJsonArrayWrapper getJsonArray(String key)
getJsonArray
in interface IJsonObjectWrapper
public IJsonObjectWrapper getJsonObject(String key)
getJsonObject
in interface IJsonObjectWrapper
public long getLong(String key)
getLong
in interface IJsonObjectWrapper
public Long getAsLong(String key)
getAsLong
in interface IJsonObjectWrapper
public String getString(String key)
getString
in interface IJsonObjectWrapper
public boolean has(String key)
has
in interface IJsonObjectWrapper
public Set<String> keySet()
keySet
in interface IJsonObjectWrapper
public int size()
size
in interface IJsonObjectWrapper
public boolean isEmpty()
isEmpty
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, boolean value)
put
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, Collection<?> value)
put
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, double value)
put
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, float value)
put
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, int value)
put
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, long value)
put
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, Map<?,?> value)
put
in interface IJsonObjectWrapper
public IJsonObjectWrapper put(String key, Object value)
put
in interface IJsonObjectWrapper
public Object remove(String key)
remove
in interface IJsonObjectWrapper
public String toString(boolean format, boolean keepNullValue)
toString
in interface IJsonObjectWrapper
public String toString(boolean format, boolean keepNullValue, boolean snakeCase)
toString
in interface IJsonObjectWrapper
public Map<String,Object> toMap()
toMap
in interface IJsonObjectWrapper
Copyright © 2022. All rights reserved.