tuweni / org.apache.tuweni.config / Configuration / getBoolean

getBoolean

abstract fun getBoolean(key: String!): Boolean (source)

Get a boolean from this configuration.

Parameters

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

Exceptions

IllegalArgumentException - If the key cannot be parsed.

InvalidConfigurationPropertyTypeException - If the value is not a boolean.

NoConfigurationPropertyException - If the key was not set in the configuration.

Return
Boolean: The value.