validateCollection

fun validateCollection(message: String = "Invalid collection for @name: @value", predicate: (Set<List<T>>?) -> Boolean): AritySetOptionBuilder<T>(source)

Validates the entire collection of arity groups for this set option. The predicate receives the complete Set>? value.

Parameters

message

Error message to display if validation fails

predicate

Function that returns true if the collection is valid