Arity List Option Builder
class ArityListOptionBuilder<T : Any> : PropertyDelegateProvider<Arguments, ReadOnlyProperty<Arguments, List<List<T>>?>> (source)
Builder for arity-based list options that return nullable lists of lists.
This class is created when calling .arity(n)
on a list option builder. Each invocation of the option consumes exactly n
values to create a sublist. Returns List<List<T>>?
(nullable) - use .required()
to get non-nullable.
Parameters
T
The element type of the values in the sublists
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun provideDelegate(thisRef: Arguments, property: KProperty<*>): ReadOnlyProperty<Arguments, List<List<T>>?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun validateCollection(message: String = "Invalid collection for @name: @value", predicate: (List<List<T>>?) -> Boolean): ArityListOptionBuilder<T>
Validates the entire collection of arity groups for this list option. The predicate receives the complete List>? value.