public class Array extends ReadOnlyArray
| Constructor and Description |
|---|
Array()
Constructs a new empty Array object.
|
Array(List<Object> array)
Constructs a new Array object with an array content.
|
| Modifier and Type | Method and Description |
|---|---|
Array |
addArray(Array value) |
Array |
addBlob(Blob value) |
Array |
addBoolean(boolean value) |
Array |
addDate(Date value) |
Array |
addDictionary(Dictionary value) |
Array |
addDouble(double value) |
Array |
addFloat(float value) |
Array |
addInt(int value) |
Array |
addLong(long value) |
Array |
addNumber(Number value) |
Array |
addObject(Object value)
Adds an object to the end of the array.
|
Array |
addString(String value) |
int |
count()
Gets a number of the items in the array.
|
void |
fleeceEncode(FLEncoder encoder,
Database database) |
Array |
getArray(int index)
Gets a Array at the given index.
|
Blob |
getBlob(int index)
Gets value at the given index as a Blob.
|
boolean |
getBoolean(int index)
Gets value at the given index as a boolean.
|
Date |
getDate(int index)
Gets value at the given index as a Date.
|
Dictionary |
getDictionary(int index)
Gets a Dictionary at the given index.
|
double |
getDouble(int index)
Gets value at the given index as an double.
|
float |
getFloat(int index)
Gets value at the given index as an float.
|
int |
getInt(int index)
Gets value at the given index as an int.
|
long |
getLong(int index)
Gets value at the given index as an long.
|
Number |
getNumber(int index)
Gets value at the given index as a Number.
|
Object |
getObject(int index)
Gets value at the given index as an object.
|
String |
getString(int index)
Gets value at the given index as a String.
|
Array |
insertArray(int index,
Array value) |
Array |
insertBlob(int index,
Blob value) |
Array |
insertBoolean(int index,
boolean value) |
Array |
insertDate(int index,
Date value) |
Array |
insertDictionary(int index,
Dictionary value) |
Array |
insertDouble(int index,
double value) |
Array |
insertFloat(int index,
float value) |
Array |
insertInt(int index,
int value) |
Array |
insertLong(int index,
long value) |
Array |
insertNumber(int index,
Number value) |
Array |
insertObject(int index,
Object value)
Inserts an object at the given index.
|
Array |
insertString(int index,
String value) |
Iterator<Object> |
iterator() |
Array |
remove(int index)
Removes the object at the given index.
|
Array |
set(List<Object> list)
Set an array as a content.
|
Array |
setArray(int index,
Array value) |
Array |
setBlob(int index,
Blob value) |
Array |
setBoolean(int index,
boolean value) |
Array |
setDate(int index,
Date value) |
Array |
setDictionary(int index,
Dictionary value) |
Array |
setDouble(int index,
double value) |
Array |
setFloat(int index,
float value) |
Array |
setInt(int index,
int value) |
Array |
setLong(int index,
long value) |
Array |
setNumber(int index,
Number value) |
Array |
setObject(int index,
Object value)
Set an object at the given index.
|
Array |
setString(int index,
String value) |
List<Object> |
toList()
Gets content of the current object as an List.
|
getData, setDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Array set(List<Object> list)
list - the arraypublic Array setObject(int index, Object value)
index - the index. This value must not exceed the bounds of the array.value - the objectpublic Array setInt(int index, int value)
public Array setLong(int index, long value)
public Array setFloat(int index, float value)
public Array setDouble(int index, double value)
public Array setBoolean(int index, boolean value)
public Array setDictionary(int index, Dictionary value)
public Array addObject(Object value)
value - the objectpublic Array addInt(int value)
public Array addLong(long value)
public Array addFloat(float value)
public Array addDouble(double value)
public Array addBoolean(boolean value)
public Array addDictionary(Dictionary value)
public Array insertObject(int index, Object value)
index - the index. This value must not exceed the bounds of the array.value - the objectpublic Array insertInt(int index, int value)
public Array insertLong(int index, long value)
public Array insertFloat(int index, float value)
public Array insertDouble(int index, double value)
public Array insertBoolean(int index, boolean value)
public Array insertDictionary(int index, Dictionary value)
public Array remove(int index)
index - the index. This value must not exceed the bounds of the array.public Array getArray(int index)
getArray in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public Dictionary getDictionary(int index)
getDictionary in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public int count()
count in class ReadOnlyArraypublic Object getObject(int index)
getObject in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public String getString(int index)
getString in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public Number getNumber(int index)
getNumber in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public int getInt(int index)
getInt in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public long getLong(int index)
getLong in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public float getFloat(int index)
getFloat in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public double getDouble(int index)
getDouble in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public boolean getBoolean(int index)
getBoolean in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public Blob getBlob(int index)
getBlob in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public Date getDate(int index)
getDate in class ReadOnlyArrayindex - the index. This value must not exceed the bounds of the array.public List<Object> toList()
toList in class ReadOnlyArraypublic Iterator<Object> iterator()
iterator in interface Iterable<Object>iterator in class ReadOnlyArraypublic void fleeceEncode(FLEncoder encoder,
Database database)
fleeceEncode in class ReadOnlyArray