validateCollection

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

Validates the entire collection of arity groups for this non-nullable list option. The predicate receives the complete List> value (never null).

Parameters

message

Error message to display if validation fails

predicate

Function that returns true if the collection is valid