tuweni / org.apache.tuweni.config / PropertyValidator / combine

combine

open static fun <T : Any> combine(first: PropertyValidator<in T>, second: PropertyValidator<in T>): PropertyValidator<T> (source)

Returns a single validator that combines the results of several validators.

Parameters

first - The first validator.

second - The second validator.

- The validator type.

Return
A single validator that combines the results of evaluating the provided validators.

open static fun <T : Any> combine(validators: MutableList<PropertyValidator<in T>>): PropertyValidator<T> (source)

Returns a single validator that combines the results of several validators.

Parameters

validators - The validators to be evaluated.

- The validator type.

Return
A single validator that combines the results of evaluating the provided validators.