Arity Set Option Builder
class AritySetOptionBuilder<T : Any> : PropertyDelegateProvider<Arguments, ReadOnlyProperty<Arguments, Set<List<T>>?>> (source)
Builder for arity-based set options that return nullable sets of lists.
This class is created when calling .arity(n)
on a set option builder. Each invocation of the option consumes exactly n
values to create a sublist. Returns Set<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, Set<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: (Set<List<T>>?) -> Boolean): AritySetOptionBuilder<T>
Validates the entire collection of arity groups for this set option. The predicate receives the complete Set>? value.