Array

expect open class Array : Iterable<Any?> (source)

Array provides readonly access to array data.

Inheritors

actual open class Array : DelegatedClass<<Error class: unknown class>> , Iterable<Any?> (source)

Inheritors

actual open class Array : Iterable<Any?> (source)

Inheritors

Properties

Link copied to clipboard
open val actual: FLArray
Link copied to clipboard
expect val count: Int

The number of the items in the array.

actual val count: Int
actual val count: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun Array.get(index: Int): Fragment

Subscript access to a Fragment object by index.

Link copied to clipboard
expect open fun getArray(index: Int): Array?

Gets an Array at the given index. Return null if the value is not an array.

actual open fun getArray(index: Int): Array?
actual open fun getArray(index: Int): Array?
Link copied to clipboard
expect fun getBlob(index: Int): Blob?

Gets value at the given index as a Blob. Returns null if the value doesn't exist, or its value is not a Blob.

actual fun getBlob(index: Int): Blob?
actual open fun getBlob(index: Int): Blob?
Link copied to clipboard
expect fun getBoolean(index: Int): Boolean

Gets value at the given index as a boolean.

actual fun getBoolean(index: Int): Boolean
actual fun getBoolean(index: Int): Boolean
Link copied to clipboard
expect fun getDate(index: Int): Instant?

Gets value at the given index as a Date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.

actual fun getDate(index: Int): Instant?
actual fun getDate(index: Int): Instant?
Link copied to clipboard
expect open fun getDictionary(index: Int): Dictionary?

Gets a Dictionary at the given index. Return null if the value is not a dictionary.

actual open fun getDictionary(index: Int): Dictionary?
actual open fun getDictionary(index: Int): Dictionary?
Link copied to clipboard
expect fun getDouble(index: Int): Double

Gets value at the given index as a double. Integers will be converted to double. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value.

actual fun getDouble(index: Int): Double
actual fun getDouble(index: Int): Double
Link copied to clipboard
expect fun getFloat(index: Int): Float

Gets value at the given index as a float. Integers will be converted to float. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the value doesn't exist or does not have a numeric value.

actual fun getFloat(index: Int): Float
actual fun getFloat(index: Int): Float
Link copied to clipboard
expect fun getInt(index: Int): Int

Gets value at the given index as an int. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.

actual fun getInt(index: Int): Int
actual fun getInt(index: Int): Int
Link copied to clipboard
expect fun getLong(index: Int): Long

Gets value at the given index as a long. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.

actual fun getLong(index: Int): Long
actual fun getLong(index: Int): Long
Link copied to clipboard
expect fun getNumber(index: Int): Number?

Gets value at the given index as a Number. Returns null if the value doesn't exist, or its value is not a Number.

actual fun getNumber(index: Int): Number?
actual fun getNumber(index: Int): Number?
Link copied to clipboard
expect fun getString(index: Int): String?

Gets value at the given index as a String. Returns null if the value doesn't exist, or its value is not a String.

actual fun getString(index: Int): String?
actual fun getString(index: Int): String?
Link copied to clipboard
expect fun getValue(index: Int): Any?

Gets value at the given index as an object. The object types are Blob, Array, Dictionary, Number, or String based on the underlying data type; or nil if the value is nil.

actual fun getValue(index: Int): Any?
actual open fun getValue(index: Int): Any?
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
expect open operator override fun iterator(): Iterator<Any?>
actual open operator override fun iterator(): Iterator<Any?>
actual open operator override fun iterator(): Iterator<Any?>
Link copied to clipboard
expect fun toJSON(): String
actual fun toJSON(): String
actual open fun toJSON(): String
Link copied to clipboard
expect fun toList(): List<Any?>

Gets content of the current object as a List. The values contained in the returned List object are all JSON based values.

actual fun toList(): List<Any?>
actual fun toList(): List<Any?>
Link copied to clipboard
expect fun toMutable(): MutableArray

Return a mutable copy of the array

actual fun toMutable(): MutableArray
actual fun toMutable(): MutableArray
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String