Annotation Interface Min


The annotated element must be a number whose value must be higher or equal to the specified minimum.

Supported types are:

  • BigDecimal
  • BigInteger
  • byte, short, int, long, and their respective wrappers
Note that double and float are not supported due to rounding errors (some providers might provide some approximative support).

null elements are considered valid.

Author:
Emmanuel Bernard
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Defines several Min annotations on the same element.
  • Required Element Summary Link icon

    Required Elements
    Modifier and Type
    Required Element
    Description
    long
     
  • Optional Element Summary Link icon

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

    • message Link icon

      String message
      Default:
      "{jakarta.validation.constraints.Min.message}"
    • groups Link icon

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

      Class<? extends Payload>[] payload
      Default:
      {}
    • value Link icon

      long value
      Returns:
      value the element must be higher or equal to