@Retention(value=RUNTIME) @Target(value=FIELD) public @interface MaxLength
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
Maximum allowed length (inclusive)
|
Copyright © 2012–2022. All rights reserved.