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 - String!: The configuration property key.

value - Any!: The default value for the property.

Exceptions

IllegalArgumentException - If the key cannot be parsed.

Return
SchemaBuilder!: This builder.