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 - PropertyValidator<in T>!: The first validator.

second - PropertyValidator<in T>!: The second validator.

- The validator type.

Return
PropertyValidator<T>!: 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 - MutableList<PropertyValidator<in T>!>!: The validators to be evaluated.

- The validator type.

Return
PropertyValidator<T>!: A single validator that combines the results of evaluating the provided validators.