@Retention(value=RUNTIME) @Target(value=FIELD) public @interface MinLength
If you simply wish to require that an option have a non-empty value then use
NotEmpty instead. Alternatively for a range of lengths you can use
LengthRange or for an exact length you can use ExactLength.
| Modifier and Type | Optional Element and Description |
|---|---|
int |
length
Minimum required length (inclusive)
|
Copyright © 2012–2022. All rights reserved.