TomlTable

@Serializable(with = TomlTableSerializer::class)
class TomlTable : TomlElement, Map<String, TomlElement> (source)

Represents table in TOML, which keys are strings and values are TomlElement.

As it delegates to map content, everything in Map could be used.

Properties

Link copied to clipboard
open override val content: Map<String, TomlElement>

The content of this TomlElement. Each subclass has its own implementation.

Link copied to clipboard
open override val entries: Set<Map.Entry<String, TomlElement>>
Link copied to clipboard
open override val keys: Set<String>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: Collection<TomlElement>

Functions

Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: TomlElement): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(key: String): TomlElement?

operator fun get(key: Any?): TomlElement?

More convenient than Map.get if this TomlTable is originally a map with primitive keys

Link copied to clipboard
operator fun TomlTable.get(vararg keys: Any?): TomlElement?

Get value along with path constructed by keys.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open override fun toString(): String

Gives a string representation of this TomlElement. Each subclass has its own implementation.

Link copied to clipboard

Convert this to TomlArray.

Link copied to clipboard

Convert this to TomlLiteral.

Link copied to clipboard

Convert this to TomlNull.

Link copied to clipboard

Convert this to TomlTable.