Annotation Interface Min
Validates that a numeric field has a minimum value.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe error message.The suggestion shown after the error message describing how to fix it.
-
Element Details
-
value
long valueThe minimum value.- Returns:
- the minimum value
-
-
-
message
String messageThe error message.- Returns:
- the message
- Default:
- "Value must be at least {value}"
-
suggestion
String suggestionThe suggestion shown after the error message describing how to fix it. Supports the same{...}placeholders asmessage()(substituted at validation time). Set to an empty string to omit the suggestion entirely.- Returns:
- the suggestion template
- Default:
- "Use a value >= {value}"
-