Annotation Type IntegerRange


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

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

      • min

        int min
        Minimum value
        Returns:
        Minimum value
        Default:
        -2147483648
      • max

        int max
        Maximum value
        Returns:
        Maximum value
        Default:
        2147483647
      • 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