Non Nullable Arity Option Builder
class NonNullableArityOptionBuilder<T> : PropertyDelegateProvider<Arguments, ReadOnlyProperty<Arguments, List<T>>> (source)
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
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
fun <U> requireIfValue(ref: KProperty<U>, predicate: (U?) -> Boolean): NonNullableArityOptionBuilder<T>