public class RangeConstraint extends Object implements Constraint<Range,Number>
Constructor and Description |
---|
RangeConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Range range,
Number argument)
For each value or parameter which should be checked this method will be invoked.
|
public boolean isValid(Range range, Number argument)
Constraint
isValid
in interface Constraint<Range,Number>
range
- the annotation to matchargument
- the value to be checked