Annotation Interface NonNegativeInt
@Constraint(validatedBy=NonNegativeIntValidator.class)
@Documented
@Retention(RUNTIME)
@Target({METHOD,FIELD})
public @interface NonNegativeInt
Validate a number is a non-negative integer.
null
are considered valid to follow the JSR-303 convention:
ex: @Min
, @Max
, @Email
, @SafeHtml
, etc. .
- See Also:
-
Optional Element Summary