Annotation Type Min


@Retention(CLASS) @Target({FIELD,PARAMETER}) public @interface Min
An integral number -- byte, short, int, long or their boxes -- that must be at least value(). Null is valid.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    long
    The smallest value allowed.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The message reported for the field; empty for the default.
  • Element Details

    • value

      long value
      The smallest value allowed.
    • message

      String message
      The message reported for the field; empty for the default.
      Default:
      ""