tuweni / org.apache.tuweni.config / SchemaBuilder / addDefault

addDefault

fun addDefault(key: String, value: Any): SchemaBuilder (source)

Provide a default value for a property.

Invoking this method with the same key as a previous invocation will replace the default value for that key.

Parameters

key - The configuration property key.

value - The default value for the property.

Exceptions

IllegalArgumentException - If the key cannot be parsed.

Return
This builder.