- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Object>
-
- org.redkale.convert.json.JsonArray
-
- 所有已实现的接口:
Serializable
,Cloneable
,Iterable<Object>
,Collection<Object>
,List<Object>
,RandomAccess
,JsonElement
public class JsonArray extends ArrayList<Object> implements JsonElement
常规json数组详情见: https://redkale.org
- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
- 另请参阅:
JsonElement
,JsonObject
,JsonString
, 序列化表格
-
-
字段概要
-
从类继承的字段 java.util.AbstractList
modCount
-
-
构造器概要
构造器 构造器 说明 JsonArray()
JsonArray(Object... array)
JsonArray(Collection collection)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 JsonArray
append(int index, Object value)
JsonArray
append(Object value)
static JsonArray
convertFrom(char[] text)
static JsonArray
convertFrom(char[] text, int offset, int length)
static JsonArray
convertFrom(String text)
static JsonArray
create()
BigDecimal
getBigDecimal(int index)
BigDecimal
getBigDecimal(int index, BigDecimal defValue)
BigInteger
getBigInteger(int index)
BigInteger
getBigInteger(int index, BigInteger defValue)
Boolean
getBoolean(int index)
boolean
getBoolean(int index, boolean defValue)
Byte
getByte(int index)
byte
getByte(int index, byte defValue)
Double
getDouble(int index)
double
getDouble(int index, double defValue)
Float
getFloat(int index)
float
getFloat(int index, float defValue)
Integer
getInt(int index)
int
getInt(int index, int defValue)
JsonArray
getJsonArray(int index)
JsonObject
getJsonObject(int index)
Long
getLong(int index)
long
getLong(int index, long defValue)
Number
getNumber(int index)
Number
getNumber(int index, Number defValue)
Short
getShort(int index)
short
getShort(int index, short defValue)
String
getString(int index)
String
getString(int index, String defValue)
boolean
isArray()
boolean
isJsonArray(int index)
boolean
isJsonObject(int index)
boolean
isNull(int index)
boolean
isObject()
boolean
isString()
<T> List<T>
toList(Type componentType)
String
toString()
-
从类继承的方法 java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
从类继承的方法 java.util.AbstractCollection
containsAll
-
从接口继承的方法 java.util.Collection
parallelStream, stream, toArray
-
从接口继承的方法 java.util.List
containsAll
-
-
-
-
构造器详细资料
-
JsonArray
public JsonArray()
-
JsonArray
public JsonArray(Collection collection)
-
JsonArray
public JsonArray(Object... array)
-
-
方法详细资料
-
convertFrom
public static JsonArray convertFrom(char[] text)
-
convertFrom
public static JsonArray convertFrom(char[] text, int offset, int length)
-
create
public static JsonArray create()
-
isNull
public boolean isNull(int index)
-
isJsonObject
public boolean isJsonObject(int index)
-
isJsonArray
public boolean isJsonArray(int index)
-
getJsonObject
public JsonObject getJsonObject(int index)
-
getJsonArray
public JsonArray getJsonArray(int index)
-
getString
public String getString(int index)
-
getBigDecimal
public BigDecimal getBigDecimal(int index)
-
getBigDecimal
public BigDecimal getBigDecimal(int index, BigDecimal defValue)
-
getBigInteger
public BigInteger getBigInteger(int index)
-
getBigInteger
public BigInteger getBigInteger(int index, BigInteger defValue)
-
getNumber
public Number getNumber(int index)
-
getDouble
public Double getDouble(int index)
-
getDouble
public double getDouble(int index, double defValue)
-
getLong
public Long getLong(int index)
-
getLong
public long getLong(int index, long defValue)
-
getFloat
public Float getFloat(int index)
-
getFloat
public float getFloat(int index, float defValue)
-
getInt
public Integer getInt(int index)
-
getInt
public int getInt(int index, int defValue)
-
getShort
public Short getShort(int index)
-
getShort
public short getShort(int index, short defValue)
-
getByte
public Byte getByte(int index)
-
getByte
public byte getByte(int index, byte defValue)
-
getBoolean
public boolean getBoolean(int index, boolean defValue)
-
isObject
public final boolean isObject()
- 指定者:
isObject
在接口中JsonElement
-
isArray
public final boolean isArray()
- 指定者:
isArray
在接口中JsonElement
-
isString
public final boolean isString()
- 指定者:
isString
在接口中JsonElement
-
toString
public String toString()
- 覆盖:
toString
在类中AbstractCollection<Object>
-
-