public class Array extends Object implements FLEncodable, Iterable<Object>
Modifier and Type | Method and Description |
---|---|
int |
count()
Gets a number of the items in the array.
|
void |
encodeTo(FLEncoder enc)
encodeTo(FlEncoder) is internal method.
|
boolean |
equals(Object o) |
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.
|
String |
getString(int index)
Gets value at the given index as a String.
|
Object |
getValue(int index)
Gets value at the given index as an object.
|
int |
hashCode() |
Iterator<Object> |
iterator() |
List<Object> |
toList()
Gets content of the current object as an List.
|
MutableArray |
toMutable()
Return a mutable copy of the array
|
getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final int count()
@Nullable public Object getValue(int index)
index
- the index. This value must not exceed the bounds of the array.@Nullable public String getString(int index)
index
- the index. This value must not exceed the bounds of the array.@Nullable public Number getNumber(int index)
index
- the index. This value must not exceed the bounds of the array.public int getInt(int index)
index
- the index. This value must not exceed the bounds of the array.public long getLong(int index)
index
- the index. This value must not exceed the bounds of the array.public float getFloat(int index)
index
- the index. This value must not exceed the bounds of the array.public double getDouble(int index)
index
- the index. This value must not exceed the bounds of the array.public boolean getBoolean(int index)
index
- the index. This value must not exceed the bounds of the array.@Nullable public Blob getBlob(int index)
index
- the index. This value must not exceed the bounds of the array.@Nullable public Date getDate(int index)
index
- the index. This value must not exceed the bounds of the array.@Nullable public Array getArray(int index)
index
- the index. This value must not exceed the bounds of the array.@Nullable public Dictionary getDictionary(int index)
index
- the index. This value must not exceed the bounds of the array.@NonNull public List<Object> toList()
public void encodeTo(@NonNull FLEncoder enc)
encodeTo
in interface FLEncodable
@NonNull public MutableArray toMutable()