tuweni / org.apache.tuweni.toml / TomlTable / getArray

getArray

@Nullable open fun getArray(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 null if no value was set in the TOML document.

@Nullable open fun getArray(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 null if no value was set in the TOML document.