@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface Values
While Lamp encourages using standard Java enums for closed-type
values, this annotation makes it easier when a quick and dirty solution is needed.
It is also usable for numerical types, which cannot be done using enums.
Values can be of any type, including strings, integers, enums, etc.
| Modifier and Type | Required Element and Description |
|---|---|
@NotNull java.lang.String[] |
value
The allowed values.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
caseSensitive
Should checks be case-sensitive?
|