public class OneOfConstraint extends Object implements Constraint<OneOf,String>
Constructor and Description |
---|
OneOfConstraint() |
public boolean isValid(OneOf oneOf, String value)
Constraint
isValid
in interface Constraint<OneOf,String>
oneOf
- the annotation to matchvalue
- the value to be checked