fun addListOfBoolean(key: String!, @Nullable defaultValue: MutableList<Boolean!>?, @Nullable description: String?, @Nullable validator: PropertyValidator<in MutableList<Boolean!>!>?): SchemaBuilder!
(source)
Add a list-of-booleans property to the schema.
Even if no validator
is provided, the schema will validate that the configuration property, if present, contains a list of booleans without any null values.
If a defaultValue
is provided, then the provided validator, if any, will only be invoked if the value is present (i.e. it will not be provided a null
value to validate).
key
- String!: The configuration property key.
defaultValue
- MutableList<Boolean!>?: A default value for the property or null if no default is provided.
description
- String?: The description to associate with this property, or null if no documentation is provided.
validator
- PropertyValidator<in MutableList<Boolean!>!>?: A validator for the property, or null if no validator is provided.
IllegalArgumentException
- If the key cannot be parsed.
Return
SchemaBuilder!: This builder.