Module com.github.rvesse.airline
Annotation Type ExactLength
-
@Retention(RUNTIME) @Target(FIELD) public @interface ExactLength
Annotation that marks that an options value is restricted to being an exact lengthIf you simply wish to require that an option have a minimum length then use
MinLength
instead, similarlyMaxLength
for maximum length. Alternatively for a range of lengths you can useLengthRange
.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
length
Exact required length in characters
-