toml / 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 - A dotted key (e.g. "server.port").

Exceptions

IllegalArgumentException - If the key cannot be parsed.

Return
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 - The key path.

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