Annotation Type Range


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface Range
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int maximum  
      java.lang.String message  
      int minimum  
    • Field Detail

      • DEFAULT_MESSAGE

        static final java.lang.String DEFAULT_MESSAGE
      • MIN_VALUE

        static final int MIN_VALUE
      • MAX_VALUE

        static final int MAX_VALUE
    • Element Detail

      • minimum

        int minimum
        Default:
        -2147483648
      • maximum

        int maximum
        Default:
        2147483647
      • message

        java.lang.String message
        Default:
        "Value \'%s\' is not in range [%s, %s]"