tuweni / org.apache.tuweni.config / PropertyValidator / allInList

allInList

open static fun <T : Any!> allInList(validator: PropertyValidator<in T>!): PropertyValidator<MutableList<T>!>! (source)

A validator that applies a validator to all elements of list, if the list is present.

Parameters

validator - PropertyValidator<in T>!: The validator to apply to elements of the list.

- The type of list elements.

Return
PropertyValidator<MutableList<T>!>!: A validator that applies a validator to all elements of list, if the list is present.