Annotation Interface Length
Specifies the exact length that a field or parameter's value must have.
This annotation enforces that the string value of a field or parameter
matches the length defined by the length
attribute. It is typically
used for string-based inputs.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Sandratra NIAINA
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionint
The exact length that the annotated field or parameter's value must have.
-
Element Details
-
length
int lengthThe exact length that the annotated field or parameter's value must have.- Returns:
- the required length
-