config / org.apache.tuweni.config / Schema / getDefaultBoolean

getDefaultBoolean

@Nullable fun getDefaultBoolean(key: String): Boolean? (source)

Get a default value from this configuration as a boolean.

Parameters

key - A configuration key (e.g. "server.active").

Exceptions

InvalidConfigurationPropertyTypeException - If the default value is not a boolean.

Return
The value, or null if no default was available.