Annotation Interface Range


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface Range
Signifies that this value has lower limit (inclusive) and has upper limit (inclusive).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Returns the upper bound for the value.
    long
    Returns the lower bound for the value.
  • Element Details

    • min

      long min
      Returns the lower bound for the value.
      Default:
      -9223372036854775808L
    • max

      long max
      Returns the upper bound for the value.
      Default:
      9223372036854775807L