Annotation Interface Validation.Number.Min

Enclosing class:
Validation.Number

@Target({METHOD,PARAMETER,ANNOTATION_TYPE,TYPE_USE,RECORD_COMPONENT}) @Constraint public static @interface Validation.Number.Min
The value must be the specified value() or higher.

Bytes are considered unsigned values (always between 0 and 255 inclusive).

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Minimal value.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Message to return instead of the default one of the validator.
  • Element Details

    • message

      String message
      Message to return instead of the default one of the validator. The message can be a string format, where the first (and only) parameter will be the actual value that is being validated.
      Returns:
      message to describe the constraint validation error
      Default:
      ""
    • value

      String value
      Minimal value. This value will be converted to a BigDecimal, so it must match its rules.
      Returns:
      the minimal value