tuweni / org.apache.tuweni.toml / TomlTable / getArrayOrEmpty

getArrayOrEmpty

open fun getArrayOrEmpty(dottedKey: String!): TomlArray! (source)

Get an array from the TOML document.

Parameters

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

Exceptions

IllegalArgumentException - If the key cannot be parsed.

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

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

open fun getArrayOrEmpty(path: MutableList<String!>!): TomlArray! (source)

Get an array from the TOML document.

Parameters

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

Exceptions

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

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