interface TomlArray
(source)
An array of TOML values.
abstract fun containsArrays(): Boolean |
|
abstract fun containsBooleans(): Boolean |
|
abstract fun containsDoubles(): Boolean |
|
abstract fun containsLocalDateTimes(): Boolean |
|
abstract fun containsLocalDates(): Boolean |
|
abstract fun containsLocalTimes(): Boolean |
|
abstract fun containsLongs(): Boolean |
|
abstract fun containsOffsetDateTimes(): Boolean |
|
abstract fun containsStrings(): Boolean |
|
abstract fun containsTables(): Boolean |
|
abstract fun get(index: Int): Any
Get a value at a specified index. |
|
open fun getArray(index: Int): TomlArray
Get an array at a specified index. |
|
open fun getBoolean(index: Int): Boolean
Get a boolean at a specified index. |
|
open fun getDouble(index: Int): Double
Get a double at a specified index. |
|
open fun getLocalDate(index: Int): LocalDate
Get a local date at a specified index. |
|
open fun getLocalDateTime(index: Int): LocalDateTime
Get a local date time at a specified index. |
|
open fun getLocalTime(index: Int): LocalTime
Get a local time at a specified index. |
|
open fun getLong(index: Int): Long
Get a long at a specified index. |
|
open fun getOffsetDateTime(index: Int): OffsetDateTime
Get an offset date time at a specified index. |
|
open fun getString(index: Int): String
Get a string at a specified index. |
|
open fun getTable(index: Int): TomlTable
Get a table at a specified index. |
|
abstract fun inputPositionOf(index: Int): TomlPosition
Get the position where a value is defined in the TOML document. |
|
abstract fun isEmpty(): Boolean |
|
abstract fun size(): Int |
|
open fun toJson(): String
Return a representation of this array using JSON. open fun toJson(appendable: Appendable): Unit
Append a JSON representation of this array to the appendable output. |
|
abstract fun toList(): MutableList<Any>
Get the elements of this array as a List. Note that this does not do a deep conversion. If this array contains tables or arrays, they will be of type TomlTable or TomlArray respectively. |