Annotation Interface Int


@Constraint(validatedBy=IntValidator.class) @Documented @Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface Int
Validate a number is a valid integer.

null are considered valid to follow the JSR-303 convention: ex: @Min, @Max, @Email, @SafeHtml, etc. .

See Also:
  • Digits
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends javax.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "{com.atlassian.bitbucket.validation.required.int.message}"
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends javax.validation.Payload>[] payload
      Default:
      {}