Annotation Interface Range
@Documented
@Retention(CLASS)
@Target({METHOD,FIELD,PARAMETER})
@ValidatedBy(RangeValidatorFactory.class)
public @interface Range
Validates
Integer, Long, Short, Float, Double, BigInteger, BigDecimal value to be in specified range-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
from
double from- Returns:
- minimum value should have (boundary rule
boundary())
-
to
double to- Returns:
- maximum value should have (boundary rule
boundary())
-
-
-
boundary
Range.Boundary boundary- Returns:
- boundary to apply when validating corner cases for value
- Default:
- INCLUSIVE_INCLUSIVE
-