open static fun anyOf(vararg values: String): PropertyValidator<String> (source)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.
values - The acceptable values.
Return
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.
values - The acceptable values.
comparator - A comparator between values.
Return
A validator that ensures a property, if present, has a comparable value within a given set.