TomlArray

@Serializable(with = TomlArraySerializer::class)
class TomlArray : TomlElement, List<TomlElement> (source)

Represents array in TOML, whose values are TomlElement.

This type delegates everything to content, thus all the functions from List could be used.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The metadata attached to each value.

Link copied to clipboard
open override val content: List<TomlElement>

The content of this element.

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
fun TomlArray.allAnnotated(vararg annotations: Annotation): TomlArray

Annotates all the values from this TomlArray with the same annotations.

Link copied to clipboard
fun TomlArray.annotated(vararg annotations: List<Annotation>): TomlArray

Annotates this TomlArray with annotations.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun contains(element: TomlElement): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<TomlElement>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): TomlElement
Link copied to clipboard

Gets a TomlArray with index from this TomlArray.

Link copied to clipboard

Gets a TomlArray with index from this TomlArray. If the element does not exist, or it is not a TomlArray, this returns null.

Link copied to clipboard

Gets a boolean with index from this TomlArray.

Link copied to clipboard

Gets a boolean with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a boolean, this returns null.

Link copied to clipboard

Gets a float (TOML float, which is Double) with index from this TomlArray.

Link copied to clipboard

Gets a float (TOML float, which is Double) with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a float, this returns null.

Link copied to clipboard

Gets an integer (TOML integer, which is Long) with index from this TomlArray.

Link copied to clipboard

Gets an integer (TOML integer, which is Long) with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to an integer, this returns null.

Link copied to clipboard

Gets a TomlLiteral with index from this TomlArray.

Link copied to clipboard

Gets a TomlLiteral with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlLocalDate with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDate, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlLocalDateTime with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDateTime, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlLocalTime with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalTime, this returns null.

Link copied to clipboard
Link copied to clipboard

Gets a TomlOffsetDateTime with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlOffsetDateTime, this returns null.

Link copied to clipboard

Gets a string with index from this TomlArray.

Link copied to clipboard

Gets a string with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a string, this returns null.

Link copied to clipboard

Gets a TomlTable with index from this TomlArray.

Link copied to clipboard

Gets a TomlTable with index from this TomlArray. If the element does not exist, or it is not a TomlTable, this returns null.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun indexOf(element: TomlElement): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<TomlElement>
Link copied to clipboard
open override fun lastIndexOf(element: TomlElement): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<TomlElement>
open override fun listIterator(index: Int): ListIterator<TomlElement>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<TomlElement>
Link copied to clipboard
open override fun toString(): String

The string representation of this element.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard