Annotation Type ShortRange


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ShortRange
    Annotation that marks values as being restricted to a given short integer range
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      short max
      Maximum value
      boolean maxInclusive
      Whether the maximum value is inclusive
      short min
      Minimum value
      boolean minInclusive
      Whether the minimum value is inclusive
    • Element Detail

      • min

        short min
        Minimum value
        Returns:
        Minimum value
        Default:
        -32768
      • max

        short max
        Maximum value
        Returns:
        Maximum value
        Default:
        32767
      • minInclusive

        boolean minInclusive
        Whether the minimum value is inclusive
        Returns:
        True if inclusive, false if exclusive
        Default:
        true
      • maxInclusive

        boolean maxInclusive
        Whether the maximum value is inclusive
        Returns:
        True if inclusive, false if exclusive
        Default:
        true