tuweni / org.apache.tuweni.config / PropertyValidator / anyOf

anyOf

open static fun anyOf(vararg values: String!): PropertyValidator<String!>! (source)

A validator that ensures a property, if present, has a value within a given set.

Parameters

values - String!: The acceptable values.

Return
PropertyValidator<String!>!: A validator that ensures a property, if present, is within a given set.

open static fun anyOf(values: MutableCollection<String!>!): PropertyValidator<String!>! (source)

A validator that ensures a property, if present, has a value within a given set.

Parameters

values - MutableCollection<String!>!: The acceptable values.

Return
PropertyValidator<String!>!: A validator that ensures a property, if present, is within a given set.

open static fun anyOf(values: MutableCollection<String!>!, comparator: Comparator<String!>!): PropertyValidator<String!>! (source)

A validator that ensures a property, if present, has a comparable value within a given set.

Parameters

values - MutableCollection<String!>!: The acceptable values.

comparator - Comparator<String!>!: A comparator between values.

Return
PropertyValidator<String!>!: A validator that ensures a property, if present, has a comparable value within a given set.