Annotation Type ShortRange


@Retention(RUNTIME) @Target(TYPE_USE) public @interface ShortRange
Controls the range of a short.

This annotation is made to be used with short or Short and not other numeric types. It is only supported by the short liaison.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    short
    The maximum value
    short
    The minimum value
  • Element Details

    • min

      short min
      The minimum value
      Returns:
      the min value, inclusive
      Default:
      -32768
    • max

      short max
      The maximum value
      Returns:
      the max value, inclusive
      Default:
      32767