|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface RangeValidate the numeric range of a property.
You can specify a min, max or both. If you specify only a max then this effectively becomes a max only range test.
| Optional Element Summary | |
|---|---|
long |
max
The maximum value. |
long |
min
The minimum value. |
public abstract long min
If left at Long.MIN_VALUE then this really becomes a Max only validation test.
public abstract long max
If left at Long.MAX_VALUE then this really becomes a Min only validation test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||