Constructor and Description |
---|
MutableArray()
Constructs a new empty Array object.
|
MutableArray(List<Object> data)
Constructs a new Array object with an array content.
|
Modifier and Type | Method and Description |
---|---|
MutableArray |
addArray(MutableArray value) |
MutableArray |
addBlob(Blob value) |
MutableArray |
addBoolean(boolean value) |
MutableArray |
addDate(Date value) |
MutableArray |
addDictionary(MutableDictionary value) |
MutableArray |
addDouble(double value) |
MutableArray |
addFloat(float value) |
MutableArray |
addInt(int value) |
MutableArray |
addLong(long value) |
MutableArray |
addNumber(Number value) |
MutableArray |
addString(String value) |
MutableArray |
addValue(Object value)
Adds an object to the end of the array.
|
int |
count() |
MutableArray |
getArray(int index)
Gets a Array at the given index.
|
Blob |
getBlob(int index) |
boolean |
getBoolean(int index) |
Date |
getDate(int index) |
MutableDictionary |
getDictionary(int index)
Gets a Dictionary at the given index.
|
double |
getDouble(int index) |
float |
getFloat(int index) |
int |
getInt(int index) |
long |
getLong(int index) |
Number |
getNumber(int index) |
String |
getString(int index) |
Object |
getValue(int index) |
MutableArray |
insertArray(int index,
MutableArray value) |
MutableArray |
insertBlob(int index,
Blob value) |
MutableArray |
insertBoolean(int index,
boolean value) |
MutableArray |
insertDate(int index,
Date value) |
MutableArray |
insertDictionary(int index,
MutableDictionary value) |
MutableArray |
insertDouble(int index,
double value) |
MutableArray |
insertFloat(int index,
float value) |
MutableArray |
insertInt(int index,
int value) |
MutableArray |
insertLong(int index,
long value) |
MutableArray |
insertNumber(int index,
Number value) |
MutableArray |
insertString(int index,
String value) |
MutableArray |
insertValue(int index,
Object value)
Inserts an object at the given index.
|
MutableArray |
remove(int index)
Removes the object at the given index.
|
MutableArray |
setArray(int index,
MutableArray value) |
MutableArray |
setBlob(int index,
Blob value) |
MutableArray |
setBoolean(int index,
boolean value) |
MutableArray |
setData(List<Object> data)
Set an array as a content.
|
MutableArray |
setDate(int index,
Date value) |
MutableArray |
setDictionary(int index,
MutableDictionary value) |
MutableArray |
setDouble(int index,
double value) |
MutableArray |
setFloat(int index,
float value) |
MutableArray |
setInt(int index,
int value) |
MutableArray |
setLong(int index,
long value) |
MutableArray |
setNumber(int index,
Number value) |
MutableArray |
setString(int index,
String value) |
MutableArray |
setValue(int index,
Object value)
Set an object at the given index.
|
List<Object> |
toList() |
_get, count, encodeTo, equals, getBlob, getBoolean, getDate, getDouble, getFloat, getInt, getLong, getNumber, getString, getValue, hashCode, iterator, outOfBoundsMsg, rangeCheck, toList, toMutable
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MutableArray setData(List<Object> data)
data
- the arraypublic MutableArray setValue(int index, Object value)
index
- the index. This value must not exceed the bounds of the array.value
- the objectpublic MutableArray setString(int index, String value)
public MutableArray setNumber(int index, Number value)
public MutableArray setInt(int index, int value)
public MutableArray setLong(int index, long value)
public MutableArray setFloat(int index, float value)
public MutableArray setDouble(int index, double value)
public MutableArray setBoolean(int index, boolean value)
public MutableArray setBlob(int index, Blob value)
public MutableArray setDate(int index, Date value)
public MutableArray setArray(int index, MutableArray value)
public MutableArray setDictionary(int index, MutableDictionary value)
public MutableArray addValue(Object value)
value
- the objectpublic MutableArray addString(String value)
public MutableArray addNumber(Number value)
public MutableArray addInt(int value)
public MutableArray addLong(long value)
public MutableArray addFloat(float value)
public MutableArray addDouble(double value)
public MutableArray addBoolean(boolean value)
public MutableArray addBlob(Blob value)
public MutableArray addDate(Date value)
public MutableArray addArray(MutableArray value)
public MutableArray addDictionary(MutableDictionary value)
public MutableArray insertValue(int index, Object value)
index
- the index. This value must not exceed the bounds of the array.value
- the objectpublic MutableArray insertString(int index, String value)
public MutableArray insertNumber(int index, Number value)
public MutableArray insertInt(int index, int value)
public MutableArray insertLong(int index, long value)
public MutableArray insertFloat(int index, float value)
public MutableArray insertDouble(int index, double value)
public MutableArray insertBoolean(int index, boolean value)
public MutableArray insertBlob(int index, Blob value)
public MutableArray insertDate(int index, Date value)
public MutableArray insertArray(int index, MutableArray value)
public MutableArray insertDictionary(int index, MutableDictionary value)
public MutableArray remove(int index)
index
- the index. This value must not exceed the bounds of the array.public MutableArray getArray(int index)
public MutableDictionary getDictionary(int index)
getDictionary
in class Array
index
- the index. This value must not exceed the bounds of the array.public int count()
public Object getValue(int index)
public String getString(int index)
public Number getNumber(int index)
public int getInt(int index)
public long getLong(int index)
public float getFloat(int index)
public double getDouble(int index)
public boolean getBoolean(int index)
public Blob getBlob(int index)
public Date getDate(int index)