Annotation Interface RangedLong


@Target(FIELD) @Retention(RUNTIME) public @interface RangedLong
When this annotation is used on a long property it will validate that the value is within the range, inclusive of the minimum and maximum values.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Gets the highest value permitted for the property.
    long
    Gets the lowest value permitted for the property.
  • Element Details

    • min

      long min
      Gets the lowest value permitted for the property.
      Returns:
      The lowest permitted value.
      Default:
      -9223372036854775808L
    • max

      long max
      Gets the highest value permitted for the property.
      Returns:
      The highest permitted value.
      Default:
      9223372036854775807L