- 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)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 JsonArrayappend(int index, Object value)JsonArrayappend(Object value)static JsonArrayconvertFrom(char[] text)static JsonArrayconvertFrom(char[] text, int offset, int length)static JsonArrayconvertFrom(String text)static JsonArraycreate()BigDecimalgetBigDecimal(int index)BigDecimalgetBigDecimal(int index, BigDecimal defValue)BigIntegergetBigInteger(int index)BigIntegergetBigInteger(int index, BigInteger defValue)BooleangetBoolean(int index)booleangetBoolean(int index, boolean defValue)BytegetByte(int index)bytegetByte(int index, byte defValue)DoublegetDouble(int index)doublegetDouble(int index, double defValue)FloatgetFloat(int index)floatgetFloat(int index, float defValue)IntegergetInt(int index)intgetInt(int index, int defValue)JsonArraygetJsonArray(int index)JsonObjectgetJsonObject(int index)LonggetLong(int index)longgetLong(int index, long defValue)NumbergetNumber(int index)NumbergetNumber(int index, Number defValue)ShortgetShort(int index)shortgetShort(int index, short defValue)StringgetString(int index)StringgetString(int index, String defValue)booleanisArray()booleanisJsonArray(int index)booleanisJsonObject(int index)booleanisNull(int index)booleanisObject()booleanisString()<T> List<T>toList(Type componentType)StringtoString()-
从类继承的方法 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>
-
-