@Nullable open fun getBoolean(dottedKey: String): Boolean? (source)
Get a boolean from the TOML document.
dottedKey - A dotted key (e.g. "server.address.port").
IllegalArgumentException - If the key cannot be parsed.
TomlInvalidTypeException - If the value is present but not a boolean, or any element of the path preceding the final key is not a table.
Return
The value, or null if no value was set in the TOML document.
@Nullable open fun getBoolean(path: MutableList<String>): Boolean? (source)
Get a boolean from the TOML document.
TomlInvalidTypeException - If the value is present but not a boolean, or any element of the path preceding the final key is not a table.
Return
The value, or null if no value was set in the TOML document.
open fun getBoolean(dottedKey: String, defaultValue: BooleanSupplier): Boolean (source)
Get a boolean from the TOML document, or return a default.
dottedKey - A dotted key (e.g. "server.address.port").
defaultValue - A supplier for the default value.
IllegalArgumentException - If the key cannot be parsed.
TomlInvalidTypeException - If the value is present but not a boolean, or any element of the path preceding the final key is not a table.
Return
The value, or the default.
open fun getBoolean(path: MutableList<String>, defaultValue: BooleanSupplier): Boolean (source)
Get a boolean from the TOML document, or return a default.
defaultValue - A supplier for the default value.
TomlInvalidTypeException - If the value is present but not a boolean, or any element of the path preceding the final key is not a table.
Return
The value, or the default.