Annotation Interface ShortRange


@Retention(RUNTIME) @Target({FIELD,RECORD_COMPONENT}) @Documented public @interface ShortRange
Config validator annotation that checks whether a short is in a range of allowed values.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    short
    The upper bound (inclusive)
    short
    The lower bound (inclusive)
  • Element Details

    • min

      short min
      The lower bound (inclusive)
      Default:
      -32768
    • max

      short max
      The upper bound (inclusive)
      Default:
      32767