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

    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.nonnegative.int.message}"
    • groups

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

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