@Documented @Retention(value=RUNTIME) @Target(value={TYPE_PARAMETER,TYPE_USE}) @SubtypeOf(value=UnknownVal.class) public @interface ArrayLen
For example, String @ArrayLen(2) [] is the type for an array of two strings, and
String @ArrayLen({1, 2, 4, 8}) [] is the type for an array that contains 1, 2, 4, or 8
strings.
| Modifier and Type | Required Element and Description |
|---|---|
int[] |
value
The possible lengths of the array.
|