tuweni / org.apache.tuweni.toml / TomlTable / getTableOrEmpty

getTableOrEmpty

open fun getTableOrEmpty(dottedKey: String!): TomlTable! (source)

Get a table from the TOML document.

Parameters

dottedKey - String!: A dotted key (e.g. "server.address.port").

Exceptions

IllegalArgumentException - If the key cannot be parsed.

TomlInvalidTypeException - If the value is present but not a table, or any element of the path preceding the final key is not a table.

Return
TomlTable!: The value, or an empty table if no value was set in the TOML document.

open fun getTableOrEmpty(path: MutableList<String!>!): TomlTable! (source)

Get a table from the TOML document.

Parameters

path - MutableList<String!>!: The key path.

Exceptions

TomlInvalidTypeException - If the value is present but not a table, or any element of the path preceding the final key is not a table.

Return
TomlTable!: The value, or an empty table if no value was set in the TOML document.