Annotation Type LongRange


@Retention(RUNTIME) @Target(TYPE_USE) public @interface LongRange
Controls the range of a long.

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

  • Optional Element Summary

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

    • min

      long min
      The minimum value
      Returns:
      the min value, inclusive
      Default:
      -9223372036854775808L
    • max

      long max
      The maximum value
      Returns:
      the max value, inclusive
      Default:
      9223372036854775807L