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.
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.
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.
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.