Annotation Interface RangedInt


@Target(FIELD) @Retention(RUNTIME) public @interface RangedInt
When this annotation is used on an integer property it will validate that the value is within the range, inclusive of the minimum and maximum value.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Gets the highest value permitted for the property.
    int
    Gets the lowest value permitted for the property.
  • Element Details

    • min

      int min
      Gets the lowest value permitted for the property.
      Returns:
      The lowest permitted value.
      Default:
      -2147483648
    • max

      int max
      Gets the highest value permitted for the property.
      Returns:
      The highest permitted value.
      Default:
      2147483647