Annotation Type Between


@Retention(RUNTIME) @Target(PARAMETER) public @interface Between
Marks a number parameter with the minimum and maximum expected integer values. If they are not met, throws IllegalArgumentException
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
     
    int
     
  • Element Details

    • min

      int min
      Returns:
      Minimum acceptable value for the annotated parameter
    • max

      int max
      Returns:
      Maximum acceptable value for the annotated parameter