tuweni / 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 - String!: A configuration key (e.g. "server.active").

Exceptions

InvalidConfigurationPropertyTypeException - If the default value is not a boolean.

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