-
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface LengthRange
Annotation that marks values as being restricted to a given length range i.e.
the length of the value must be within the range
-
-
Optional Element Summary
Optional Elements
| Modifier and Type |
Optional Element and Description |
int |
max
Maximum value
|
int |
min
Minimum value
|
-
-
Element Detail
-
min
public abstract int min
Minimum value
- Returns:
- Minimum value
- Default:
- -2147483648
-
-
max
public abstract int max
Maximum value
- Returns:
- Maximum value
- Default:
- 2147483647
Copyright © 2012–2022. All rights reserved.