NonNullableArityOptionBuilder

Builder for arity-based options that return non-nullable lists of values.

This class is created when calling .required() or .atLeast(n) on an ArityOptionBuilder. Returns List<T> (non-nullable) and preserves all arity functionality. Follows the same pattern as NonNullableOptionBuilder.

Parameters

T

The element type of the values in the returned list

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

Registers a callback to be executed when this required arity option receives a value. The callback receives List (non-nullable) since this is a required option.

Link copied to clipboard
open operator override fun provideDelegate(thisRef: Arguments, property: KProperty<*>): ReadOnlyProperty<Arguments, List<T>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun validate(message: String = "Invalid arity group for @name: @value", predicate: (List<T>) -> Boolean): NonNullableArityOptionBuilder<T>