Arity Option Builder
class ArityOptionBuilder<T> : PropertyDelegateProvider<Arguments, ReadOnlyProperty<Arguments, List<T>?>> (source)
Builder for arity-based options that return nullable lists of values.
This class is created when calling .arity(n)
on an option builder and provides a fluent API for configuring multi-value options that must consume exactly n
values. Returns List<T>?
(nullable) - use .required()
to get non-nullable List<T>
.
Parameters
T
The element type of the values in the returned list
Functions
Link copied to clipboard
Marks this arity option as required with a minimum number of occurrences. For arity options, atLeast(n) implies required().
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<T>?>
Link copied to clipboard
Marks this arity option as required, making it non-nullable. Returns a NonNullableArityOptionBuilder that preserves arity functionality.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard