tuweni / org.apache.tuweni.toml / TomlTable / contains

contains

open fun contains(dottedKey: String!): Boolean (source)

Check if a key was set in the TOML document.

Parameters

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

Exceptions

IllegalArgumentException - If the key cannot be parsed.

Return
Boolean: true if the key was set in the TOML document.

open fun contains(path: MutableList<String!>!): Boolean (source)

Check if a key was set in the TOML document.

Parameters

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

Return
Boolean: true if the key was set in the TOML document.