tuweni / org.apache.tuweni.toml / TomlArray

TomlArray

interface TomlArray (source)

An array of TOML values.

Functions

containsArrays

Returns true if the array contains arrays.

abstract fun containsArrays(): Boolean

containsBooleans

Returns true if the array contains booleans.

abstract fun containsBooleans(): Boolean

containsDoubles

Returns true if the array contains doubles.

abstract fun containsDoubles(): Boolean

containsLocalDates

Returns true if the array contains local dates.

abstract fun containsLocalDates(): Boolean

containsLocalDateTimes

Returns true if the array contains local date times.

abstract fun containsLocalDateTimes(): Boolean

containsLocalTimes

Returns true if the array contains local time objects.

abstract fun containsLocalTimes(): Boolean

containsLongs

Returns true if the array contains longs.

abstract fun containsLongs(): Boolean

containsOffsetDateTimes

Returns true if the array contains offset date times.

abstract fun containsOffsetDateTimes(): Boolean

containsStrings

Returns true if the array contains strings.

abstract fun containsStrings(): Boolean

containsTables

Returns true if the array contains tables.

abstract fun containsTables(): Boolean

get

Get a value at a specified index.

abstract fun get(index: Int): Any!

getArray

Get an array at a specified index.

open fun getArray(index: Int): TomlArray!

getBoolean

Get a boolean at a specified index.

open fun getBoolean(index: Int): Boolean

getDouble

Get a double at a specified index.

open fun getDouble(index: Int): Double

getLocalDate

Get a local date at a specified index.

open fun getLocalDate(index: Int): LocalDate!

getLocalDateTime

Get a local date time at a specified index.

open fun getLocalDateTime(index: Int): LocalDateTime!

getLocalTime

Get a local time at a specified index.

open fun getLocalTime(index: Int): LocalTime!

getLong

Get a long at a specified index.

open fun getLong(index: Int): Long

getOffsetDateTime

Get an offset date time at a specified index.

open fun getOffsetDateTime(index: Int): OffsetDateTime!

getString

Get a string at a specified index.

open fun getString(index: Int): String!

getTable

Get a table at a specified index.

open fun getTable(index: Int): TomlTable!

inputPositionOf

Get the position where a value is defined in the TOML document.

abstract fun inputPositionOf(index: Int): TomlPosition!

isEmpty

Returns true if the array is empty.

abstract fun isEmpty(): Boolean

size

Provides the size of the array.

abstract fun size(): Int

toJson

Return a representation of this array using JSON.

open fun toJson(): String!

Append a JSON representation of this array to the appendable output.

open fun toJson(appendable: Appendable!): Unit

toList

Get the elements of this array as a List.

abstract fun toList(): MutableList<Any!>!