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 |
add(Object value)
Adds an object to the end of the array.
|
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 |
insert(int index,
Object value)
Inserts an object at the given index.
|
Iterator<Object> |
iterator() |
Array |
remove(int index)
Removes the object at the given index.
|
Array |
set(int index,
Object value)
Set an object at the given index.
|
Array |
set(List<Object> list)
Set an array as a content.
|
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 set(int index, Object value)
index - the index. This value must not exceed the bounds of the array.value - the objectpublic Array add(Object value)
value - the objectpublic Array insert(int index, Object value)
index - the index. This value must not exceed the bounds of the array.value - the objectpublic 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 class ReadOnlyArraypublic void fleeceEncode(FLEncoder encoder,
Database database)
fleeceEncode in class ReadOnlyArray