onValue

fun onValue(callback: (T) -> Unit): CollectionOptionBuilder<T, C>(source)

Registers a callback to be executed when this collection option's values are found during parsing. The callback receives each converted value and is executed after all parsing and validation completes. For collection options, the callback is called once for each element in the collection.