public class OneOfConstraint extends Object implements Constraint<OneOf,String>
Constructor and Description |
---|
OneOfConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(OneOf oneOf,
String value)
For each value or parameter which should be checked this method will be invoked.
|
public boolean isValid(OneOf oneOf, String value)
Constraint
isValid
in interface Constraint<OneOf,String>
oneOf
- the annotation to matchvalue
- the value to be checked