validateCollection

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

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

Parameters

message

Error message to display if validation fails

predicate

Function that returns true if the collection is valid